项目作者: mightbesimon

项目描述 :
Encrypts files with a password byte-by-byte using a XOR cipher
高级语言: C
项目地址: git://github.com/mightbesimon/XOR-file-encryption.git
创建时间: 2020-05-25T06:22:36Z
项目社区:https://github.com/mightbesimon/XOR-file-encryption

开源协议:

下载


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

  1. $ gcc fileEncrypt.c -o xor

usage

  1. $ ./xor <filename> <password>

example

  1. $ ./xor auckland.jpg password1

will produce new-auckland.jpg file, to decrypt:

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