The general formula for encrypting a letter(In a string) is : x^n*y
- What is ' x' ?
It is what I like to call the letter key or the letter number. For example in the normal sequence letters goes like 1, 2, 3, 4. In which A=1, B=2 and so on. The user can specify this number sequence. For example I used A=29, B=34 and so on for some messages.
- What is 'n' ?
It is what I like to call the exp key or the exp number, The user can specify this number which is not so small and not so big. For example I kept this number as 9 for some messages.
- What is 'y' ?
It is there just to confuse the third person who is looking at the code a little bit more, this can be any number less than infinity :).
Just reverse the action to get the decrypted message which would be dividing the encrypted letter and rooting it by the 'n' :)
I am working on a C++ program for making use this cipher, it'll up soon hopefully and by that time I need you guys to point out the flaws in this cipher, it would be considered a great help. :)
Here is a word encrypted using the flashback encryption :
[4901067]0[127488]0[48632815] - The word is "BAD"! [Each zero with out square brackets represents space between each letter and each square bracket represents a letter]
In this case, x = 2
n = 9
y = 249
Edit : Every repeating letter, for example In the word 'lol', 'l' is a repeating letter the first time it'll be normal encryption mentioned above and the second time it'll be the encrypted letter number^2(2-because its is the second occurrence), if it's the third occurrence then l^3 or it can also be user specified, moreover after the 3rd occurrence then it will be multiplying the encrypted l with a new number for example z, which can also be user specified. [P.S If you have any doubt regarding this part please comment below.]
Edit : Every repeating letter, for example In the word 'lol', 'l' is a repeating letter the first time it'll be normal encryption mentioned above and the second time it'll be the encrypted letter number^2(2-because its is the second occurrence), if it's the third occurrence then l^3 or it can also be user specified, moreover after the 3rd occurrence then it will be multiplying the encrypted l with a new number for example z, which can also be user specified. [P.S If you have any doubt regarding this part please comment below.]
No comments:
Post a Comment