Registry / crypto / xor-utils

xor-utils

JSON →
library0.6.0rscratesunverified

Utility functions related to XOR encryption and decryption.

# Cargo.toml [dependencies] xor-utils = "0.6.0"
INSTALL
IMPORT
SIG · XOR-UTILS
X
xor-utils
cryptorustv0.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

xor
use xor_utils::xor;

Encrypts data using XOR with a key.

use xor_utils::xor; fn main() { let data = b"hello"; let key = b"key"; let encrypted = xor(data, key); println!("{:?}", encrypted); }
Debug
Known issues
gotchaXOR encryption is not secure for real-world use
fix
Use a proper encryption library like aes-gcm
affects: *
Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
24
Resources
xor-utils — cargo add xor-utils · libregistry