Introducing a super secure function to crypt your sensitive data - PolynumCrypt!
Say you wanted to crypt the string $\text{super}$, with a key of $6$.
- Get the ASCII values of the string, corresponding to $115,117,112,101,114$ in this case
- Turn that into a polynomial where the $n\text{th}$ coefficient corresponds to the $n\text{th}$ ASCII value, in this case $115x^4 + 117x^3 + 112x^2 + 101x + 114$
- Substitute the key value into $x$ to get your crypted number, in this case $179064$.
I've written a Python script to make it easy to use.
Of course, brute-forcing $256^{n}$ possibilities for a string length $n$ is impossible, which makes this algorithm super secure.
Maybe you can prove me wrong about PolynumCrypt, if you can crack my password:
$\text{polynumcrypt(pass,1) = 1253}$
$\text{polynumcrypt(pass,1253) = 2102474472933529067195268690993346961762041}$
pass
a variable or a string? $\endgroup$ – March Ho Mar 24 '15 at 7:55