ascii - Python AES text encryption script -
i working on python script encrypts text using 128-aes algorithm have problem:
picture shows script processes. works fine thing in decryption when give wrong key output decimals goes out of range of ascii, program can't show text @ output.
expected wrong text! wrong code or should that?
that's normal, because aes (and modern cryptosystems) dealing encrypting actual byte values, not ascii values. incorrect key, data won't decrypted correctly, resulting in ranges outside of normal ascii values.
if you're looking encrypts/decrypts ascii, of "classic" ciphers: caesar shift, vigenere, etc.
Comments
Post a Comment