Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 847 Bytes

README.md

File metadata and controls

45 lines (31 loc) · 847 Bytes

XOR File Encryption

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.

compile

$ gcc fileEncrypt.c -o xor

usage

$ ./xor <filename> <password>

example

$ ./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

Authors

License

MIT

Acknowledgments

  • these are just my sample codes, if you misuse them its not my problem
  • this was fun assignment, easy to code and useful!