Python; CyberSecurity; Secure storage; Vigenere Cipher
Encrypt / decrypt files using an extension of Caesar's Cipher called Vigenere Cipher; Generate random, create custom, or import keys for encryption / decryption
Required modules / libraries:
Random Time
Algorithm(s):
Vigenere Cipher
- A key is imported Key's are composed of two parts
- External key ( a text file containing a randomly generated or custom created key )
- Internal / built-in master key ( a variable within the program )
- The final character in each key is a magic number between 0 and 9
Keys are stored securely using a magic number (2) to adjust / increase ASCII values of each character in the key before storage
- Data to encrypt / decrypt is imported
- Each character of the imported data, imported key, and master key are converted into their corresponding ASCII chart values
- During encryption, values are added together and converted back into their characterized form to create the encrypted version of the data
- Elsewise for decryption, both key values are substracted from the encrypted data values to revert them back to their decrypted version(s)
Footnote: this program can be further improved in security by adjusting / changing the key length, master key, magic number size, and number of times to be encrypted.