SSudarvix
Home / Learn / How-to
Sudarvix Learn · How-to

How to Encrypt and Decrypt Text Online

A practical walkthrough of text encryption, passphrases, salts, IVs, and safe handling.

Encryption versus encoding

Encryption uses a secret key to make data unreadable to unauthorized people. Encoding changes data representation so it can be transported or stored; it does not provide secrecy. Base64 is encoding, not encryption.

Before you encrypt

Choose a strong, unique passphrase and understand how the recipient will obtain it. If the passphrase is lost, properly encrypted data may be unrecoverable. Do not send the passphrase in the same channel as the encrypted message.

How browser-based encryption works

A browser tool can use the Web Crypto API to perform cryptographic operations locally. A typical passphrase-based design derives a key using a password-based key derivation function, then encrypts with an authenticated cipher such as AES-GCM.

What are salt and IV?

A salt is a random value used during key derivation so identical passphrases do not produce identical derived keys. An IV or nonce is a separate value used by the encryption mode. Both values normally travel with the ciphertext; they are not secret keys.

How to decrypt

Use the same compatible algorithm, parameters, salt, IV, and passphrase used for encryption. If any required value is missing or the passphrase is wrong, authenticated decryption should fail rather than return trusted plaintext.

Security checklist

Use a unique strong passphrase; keep it private; use authenticated encryption; use fresh random salts and nonces; avoid sharing sensitive data with tools you have not reviewed; and remember that browser extensions or a compromised device may still observe what you type.

Try the Sudarvix AES tool

Open the Sudarvix AES Encrypt / Decrypt utility for a demonstration. It is intended for general-purpose testing, not as a certified vault or a replacement for an organization's approved encryption system.

Explore related tools

Put the concepts into practice with Sudarvix utilities.

Explore all Sudarvix tools →