COMPSCI 210
University of Auckland
Simon Shan
Encrypts files with a password byte-by-byte using a XOR cipher.
Decryption is the same process,
only the password used to encrypt will decrypt the file.
$ gcc fileEncrypt.c -o xor
$ ./xor <filename> <password>
$ ./xor auckland.jpg password1
will produce new-auckland.jpg
file, to decrypt:
$ ./xor new-auckland.jpg password1
new-new-auckland.jpg
will be identical to the original
- simon -
buy my merchhire me pls - mightbesimon
MIT
- these are just my sample codes, if you misuse them its not my problem
- this was fun assignment, easy to code and useful!