Skip to content

XOR-encrypt and decrypt from stdin. Written in Rust.

codeSamuraii/PrettyBadPrivacy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PrettyBadPrivacy

XOR-encrypt and decrypt from stdin.

The name is a joke, referring to PGP (Pretty Good Privacy) encryption.

Needless to say, XOR-encryption is incredibly weak and shouldn't be used for sensitive data. Furthermore, the XOR mask used is very simple : pbpPBP (cycling).

This was just a small personnal project to learn Rust.

Usage

# Encryption
cat my_secret_file.dat | pbp > encrypted.pbp

# Decryption
cat encrypted.pbp | pbp -d > my_secret_file.dat

About

XOR-encrypt and decrypt from stdin. Written in Rust.

Topics

Resources

Stars

Watchers

Forks

Languages