10-17-2025, 02:03 PM
(This post was last modified: 10-17-2025, 04:25 PM by ahenry3068.)
I have now expanded my algorithm into a generally functional file encryptor and decryptor.
I'm encrypting 32 bit values at a time, so there's a little tiny AND UNIMPORTANT bug to still fix.
If the input file is not an even multiple of 4 bytes in size then the output file will have up to 3 trailing 0 bytes. On most binary file formats these are unimportant and they are very easy to remove on a text file !
(* UPDATE: This is FIXED Now *)
Need to think on how to solve this actually.
**cryptor** encrypts a file given a Double Value as a Key (*user entered*). It saves a *.CRYPT file and a *.CKEY file for **decryptor**.
If the CKEY file is deleted the file may be decrypted if you know what key was entered for the encryption and enter it manually !
Anyway here is the code
I'm encrypting 32 bit values at a time, so there's a little tiny AND UNIMPORTANT bug to still fix.
If the input file is not an even multiple of 4 bytes in size then the output file will have up to 3 trailing 0 bytes. On most binary file formats these are unimportant and they are very easy to remove on a text file !
(* UPDATE: This is FIXED Now *)
Need to think on how to solve this actually.
**cryptor** encrypts a file given a Double Value as a Key (*user entered*). It saves a *.CRYPT file and a *.CKEY file for **decryptor**.
If the CKEY file is deleted the file may be decrypted if you know what key was entered for the encryption and enter it manually !
Anyway here is the code

