Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

bioatk encryption

// description of your code here

BiOAtK Encryption

"@" = seperation of chinese words

"_" = seperation of letters


弹出@打击-2_嗨+0_ is our encrypted message.

Let's dissect the first part, 弹出@打击-2_. We can judge the @ seperates the two chinese words that encrypt the message, and the _ seperates each letter part. So we have 弹出 and 打击, (we'll leave the -2 out for now) which translates into POP and HIT, respectively. We discover the numerical value of POP ( the ASCI value of each of the letters added together, in this case 16 (P), 15 (O), and 16 (P) ) is 47, and the numerical value of HIT is 37. We then subract 37 from 47 and get 10. Now the -2 comes into play. This is the additive, what you add from the words' numerical value to get the actual numerical value of the letter encrypted. We discover that when you subract 2 from 10, you get 8, which is the ASCI value of the letter H.

弹出 = POP     = 47
打击 = HI   = (-)37
________________
             = 10
(ADDITIVE)   = -2
________________
              = 8
            H = 8



H_嗨+0_

This is our encrypted message so far partially decrypted. We now have the 嗨+0_ part to decrypted. As we take out the @ and _ parts, we realize it is 嗨 and an additive of +0. 嗨 translates to Hi, which has the numerical value of 9. With an additive of +0, we keep the numerical value of 9 as the ASCI value of the decrypted letter, i. Congratulations, you have decrypted 弹出@打击-2_嗨+0_ into "hi", not to mention learned how to encrypt things with BiOAtK Encryption.


You need to create an account or log in to post comments to this site.


Click here to browse all 6645 code snippets