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

ZeroX29a/XOR-file-encryption

 
 

Repository files navigation

XOR File Encryption

JCtine

This work is a built up on the project done by simon

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

New!

  • Added Reversing the File as a block: File is broken into blocks of size given by the user and the block is reversed and replaced.
  • This Prevents decryption by bruteforcing the Password

Decryption is the same process,
only the password used to encrypt will decrypt the file.

compile

$ gcc enc.c -o xore #Just encrypting engine
$ gcc dec.c -o xord #Just decrypting engine
$ gcc both.c -o xorb #This alone is enough

Usage

$ ./xorb <mode[-e or -d]> <filename> <password> <reversing block size[<16]>

Example

$ ./xorb -e auckland.jpg password1 13 #OR
$ ./xore auckland.jpg passwdd123 13

will produce rauckland.jpg file, to decrypt:

$ ./xorb -d rauckland.jpg password1 13 #OR
$ ./xord rauckland.jpg passwdd123 13

rrauckland.jpg will be identical to the original

Hashes

The Hash of auckland.jpg and rrauckland.jpg is same

hash

Authors

License

MIT

Acknowledgments

  • these are just my sample codes, if you misuse them its not my problem

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%