@kszongic/xor-cli
v1.0.0
Published
XOR encrypt/decrypt strings and files from the command line
Maintainers
Readme
@kszongic/xor-cli
XOR encrypt/decrypt strings and files from the command line. Zero dependencies.
Install
npm install -g @kszongic/xor-cliUsage
# XOR a string
xor-cli mykey "hello world"
# XOR a file
xor-cli mykey -f secret.txt -o secret.enc
# Decrypt (XOR is symmetric)
xor-cli mykey -f secret.enc -o secret.txt
# Hex mode
xor-cli --hex 4a6f "hello"
# Pipe from stdin
echo "hello" | xor-cli mykey
# Show help
xor-cli --helpHow It Works
XOR cipher applies each byte of the key cyclically against the input. It's symmetric — encrypt and decrypt use the same operation. Useful for quick obfuscation, CTF challenges, and binary manipulation.
License
MIT © 2026 kszongic
