| Crates.io | encryptor |
| lib.rs | encryptor |
| version | 0.1.0 |
| created_at | 2025-05-03 19:07:13.487027+00 |
| updated_at | 2025-05-03 19:07:13.487027+00 |
| description | Password-based encryption for Web3 wallet seed phrases |
| homepage | |
| repository | https://github.com/sumit03guha/encryptor |
| max_upload_size | |
| id | 1659082 |
| size | 24,360 |
Encrypt a Web3 wallet secret phrase with an easy-to-remember password and store only the resulting ciphertext string.
Argon2id — password → 256-bit keyAES-256-GCM — key + nonce → authenticated ciphertext[salt | nonce | ciphertext] Base64URL-encoded (no padding)use encryptor::{encrypt, decrypt};
let phrase = "satoshi doll mercy …"; // wallet seed phrase
let pass = "Fr33dom-2025!"; // memorable password
let blob = encrypt(phrase, pass)?; // store this string
assert_eq!(phrase, decrypt(&blob, pass)?);
| ✅ Protects against | ❌ Does not protect against |
|---|---|
| Lost / stolen disk or backup | Very weak or leaked passwords |
| Curious cloud operator | Attackers who can key-log or phish your pass |
Security disclaimer: No formal audit yet. Use at your own risk.
encrypt] – passphrase → ciphertext stringdecrypt] – ciphertext string → original secret phraseCryptoError] – unified error enum