Posted 28 June 2015 - 08:15 PM
I've written a quick proof-of-concept encryption program.
It isn't anything special yet, it uses SquidDev's AES API for encryption and decryption, though I have big plans ;)/>
Main program: http://pastebin.com/mX58vjWD
AES API: http://pastebin.com/r3CkkGsw
(You must name the api 'aes')
You enter a key and a secret, the program encrypts them, saves the result to a file (save.pass), then reads the file and decrypts it using the original key.
It spits out the correct result, but if you continuously enter the same password and the same key, the encryption always different…
And it correctly decrypts…
WHY?
Note that if you get the error 'newline Detected', it is to show when a newline (\n) was generated in the encryption
That is a story for another day…
It isn't anything special yet, it uses SquidDev's AES API for encryption and decryption, though I have big plans ;)/>
Main program: http://pastebin.com/mX58vjWD
AES API: http://pastebin.com/r3CkkGsw
(You must name the api 'aes')
You enter a key and a secret, the program encrypts them, saves the result to a file (save.pass), then reads the file and decrypts it using the original key.
It spits out the correct result, but if you continuously enter the same password and the same key, the encryption always different…
And it correctly decrypts…
WHY?
Note that if you get the error 'newline Detected', it is to show when a newline (\n) was generated in the encryption
That is a story for another day…