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.
DES is kept for talking to legacy systems — its 56-bit key is far too weak for anything new. Use AES for real data.
Keys are generated in your browser with Web Crypto. Only the public key is needed to encrypt; the private key is required to decrypt. RSA-OAEP with SHA-256 handles roughly 190 bytes per 2048-bit block.
A hash is one-way: you cannot turn the digest back into the text. SHA-1 is shown for compatibility checks only — for anything security-related use SHA-256 or stronger.
Symmetric, asymmetric, and when to use which
Symmetric
Asymmetric
Keys
One shared secret
A public key and a private key
Speed
Fast — suited to bulk data
Slow, hundreds of times slower
Typical algorithms
AES, ChaCha20
RSA, ECDSA, X25519
Main use
Encrypting the actual data
Key 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
ECB encrypts each block independently, so identical plaintext blocks produce identical ciphertext blocks. It leaks structure and should never be used for real data.
CBC chains blocks together with an initialisation vector, hiding that pattern. It provides confidentiality but not integrity.
GCM combines encryption with authentication, so tampering is detected. It is the usual default for new work.
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.
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.