Skip to content

Harazi/xor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XOR

Simple key-based encryption using XOR gate.

Building

Although bitwise operations are built into C, you still need a cryptographic library for hashing the key to mitigate exploits for guessing the key length. The list of supported libraries are in the Makefile, choose one and build with it.

$ make openssl

Usage

The only argument is the encryption key, stdin and stdout are utilized for reading and writing.

$ echo -n 1234567890 | xor test | xxd -p
# affc3b5aae9a7e27956c

Do the reverse for decrypting.

$ echo -n affc3b5aae9a7e27956c | xxd -p -r | xor test
# 1234567890

About

Key-based encryption using XOR gate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published