Creating a simple hash algorithm S12Hash

S12 - H4CK
6 min readApr 20, 2023

Introduction

Welcome to my new article, today i will show you my new hash created by me, first of all, this hash its not serious, and not created to implement in serious projects.

I use it in some of my malwares, one of this its a ransomware that I’m creating, and I use in other from next’s new malwares and personal projects.

Here you have the link to GitHub repository if you want to see and use this hash algorithm:

Logical

Let me explain in detail how this hash function works for the string “Created by S12”, step by step:

  1. First, we define the hash function. In this case, we are using a simple “suma de caracteres” (sum of characters) function, which involves adding the ASCII values of each character in the string together. However, we also have a modification to this basic function: we multiply the resulting sum by the ASCII value of the letter ‘S’ (83) and add a constant factor of 12.
  2. Next, we apply this function to the original string “Created by…

--

--