Encrypt & Decrypt

Four most-used capabilities: AES passphrase encryption, DES for legacy systems, RSA public-key encryption and SHA hashing — all done locally in your browser.

The result already embeds a random salt and IV, so encrypting the same text twice gives different output. Key derivation is PBKDF2-SHA256 with 100 000 iterations — only the passphrase is needed to decrypt.

Symmetric, asymmetric, and when to use which

SymmetricAsymmetric
KeysOne shared secretA public key and a private key
SpeedFast — suited to bulk dataSlow, hundreds of times slower
Typical algorithmsAES, ChaCha20RSA, ECDSA, X25519
Main useEncrypting the actual dataKey exchange and digital signatures

Real systems use both. TLS, for example, uses asymmetric cryptography only to agree on a session key, then encrypts the traffic with a fast symmetric cipher.

Modes matter as much as the algorithm

An IV or nonce must be unique per message. Reusing one with the same key is a serious flaw, not a minor slip.

Encryption is not hashing

Encryption is reversible with the key; hashing is one-way. Passwords should be hashed, never encrypted, and hashed with a deliberately slow, salted algorithm such as bcrypt, scrypt or Argon2 — not with SHA-256, which is designed to be fast and is therefore cheap to brute-force at scale.

Do not invent your own scheme

Rolling your own combination of primitives is one of the most reliable ways to build something broken. Use a vetted library, use its high-level API rather than its low-level primitives, and never reuse a key for two purposes. In a browser, treat any client-side cryptography as obfuscation rather than protection, since the key has to live where the user can reach it.

Related tools

FAQ

Is this encryption tool safe? Is my plaintext uploaded?
No. All encryption and decryption run locally in your browser via Web Crypto; neither plaintext nor keys are sent to any server. Note: this tool is for everyday protection and learning — do not rely on it for strongly regulated secrets.
What's the difference between AES and RSA?
AES is symmetric: the same passphrase encrypts and decrypts, and it's fast — good for encrypting text or files. RSA is asymmetric: encrypt with the public key, decrypt with the private key — good for securely handing a key or short message to someone else.
Is DES still secure?
DES has only 56 effective key bits — weak by modern standards, mainly for legacy-system compatibility. For new applications use AES-256. This tool offers DES for interoperating with old systems.
How is SHA different from encryption?
SHA is a one-way hash: you can compute a digest from the input but cannot recover the input — used for integrity checks or password fingerprints. AES / DES / RSA are reversible encryption: with the key you can recover the plaintext.
How do I store a passphrase-encrypted result?
The AES output already embeds a random salt and initialization vector — you only need to remember the passphrase to decrypt. Keep the passphrase safe; if it is lost, the data cannot be recovered.