Skip to content

Encrypts files with a password byte-by-byte using a XOR cipher

Notifications You must be signed in to change notification settings

mightbesimon/XOR-file-encryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Encrypts files with a password byte-by-byte using a XOR cipher

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages