CAST Encryption is an online CAST-128 (CAST5) encryption/decryption tool, supporting ECB / CBC / CFB / OFB cipher modes, PKCS#7 / ISO 9797-1 / ANSI X.923 / ISO 10126 / Zero Padding / No Padding padding schemes, and Base64 / Hex / Latin1 output encodings. All operations run locally in the browser — no data is uploaded to any server.
Enter or click the generate button to create a key (CAST-128 uses a fixed 16-byte / 128-bit key)
Select a cipher mode (ECB / CBC / CFB / OFB). Non-ECB modes require an IV (8 bytes)
Choose a padding scheme and output encoding, then paste or type your text in the input area
Click "Encrypt" or "Decrypt" to perform the operation
The result will appear on the right. Use Copy or Download to save it, or Swap to exchange input and output
The tool gives you free daily uses, so everyday light encrypt/decrypt needs are covered at zero cost — no payment required to experience the full feature set.
All encryption/decryption runs locally in your browser. Plaintext, keys, and ciphertext are never uploaded to any server, maximizing your data privacy.
Fully supports CAST-128 (CAST5), enabling encryption/decryption compatible verification with the OpenPGP / GnuPG ecosystem.
A clean, intuitive interface with no software to install — open the page and use it instantly, including one-click random key generation and result export.
Processing happens locally and finishes instantly with no server round-trip. Results display on the right side in real time and can be copied or downloaded with one click.
Runs in any modern browser, so Windows, macOS, Linux, and mobile browsers all work without worrying about system compatibility.
Different cipher modes determine how data blocks relate to each other, affecting security and applicable scenarios:
| Mode | Full Name | Requires IV | Description |
|---|---|---|---|
| ECB | Electronic Codebook | No | Each block encrypted independently; identical plaintext produces identical ciphertext — not recommended for long texts |
| CBC | Cipher Block Chaining | Yes | Each block depends on the previous ciphertext; high security, most commonly used mode |
| CFB | Cipher Feedback | Yes | Converts block cipher to stream cipher; suitable for real-time encryption |
| OFB | Output Feedback | Yes | Converts block cipher to stream cipher; errors do not propagate |
When plaintext length is not a multiple of the block size (8 bytes), padding is required:
CAST-128 (also known as CAST5) is a symmetric-key block cipher designed by Carlisle Adams and Stafford Tavares in 1996, defined in RFC 2144. Key characteristics:
CAST-128 (also known as CAST5) is a symmetric-key block cipher designed by Carlisle Adams and Stafford Tavares in 1996. It is a mandatory cipher in OpenPGP (RFC 4880) and the default symmetric encryption algorithm in GnuPG 1.x, widely used in PGP encrypted communication.
Both are symmetric block ciphers but differ in design: CAST-128 has a 64-bit block size, 40~128-bit key, and 16-round Feistel structure; AES has a 128-bit block size, 128/192/256-bit key, and 10~14-round SPN structure. AES is the modern encryption standard with wider adoption; CAST-128 is primarily used for OpenPGP and legacy system compatibility.
Yes, decryption must use the exact same key, cipher mode, padding scheme, and output encoding as encryption. Otherwise, decryption will fail or produce garbled output.
CBC mode is generally recommended — it is the most commonly used mode with good security and broad compatibility. ECB mode is not recommended for sensitive data as identical plaintext produces identical ciphertext, risking pattern leakage.
Possible reasons: ① Incorrect key or mismatched length (must be 16 bytes); ② Cipher mode or padding scheme does not match what was used for encryption; ③ Wrong output encoding (if Base64 was used for encryption, select Base64 for decryption too); ④ The input is not valid encrypted data.
No. All encryption/decryption operations run entirely in your browser. Your keys and data never leave your device.
Yes. The tool uses UTF-8 encoding to process text and can correctly encrypt and decrypt Chinese, Japanese, Korean, and any other Unicode characters.
A CAST encryption tool is an online symmetric encryption tool for encrypting and decrypting text with CAST-128 (CAST5). It supports multiple cipher modes and padding schemes, with all operations running locally in the browser — ideal for compatible data handling with the OpenPGP / GnuPG ecosystem.
All processing runs locally in the browser, so it is very fast and most text finishes almost instantly. For very long text, the browser processes it in one pass and generally will not noticeably lag; for extremely large content, splitting it into several runs is recommended.
Yes, mobile is supported. The tool runs in a web page, so mobile browsers (iOS Safari, Android Chrome, etc.) can open and use it directly. The layout is responsive, so you can encrypt and decrypt anytime, anywhere.
This tool uses pure browser-local computation and never uploads data to a server, so its privacy protection is on par with ordinary local software. Compared with third-party software that requires installation and may bundle plugins or collect data, local online computation is lighter and more transparent.
The tool gives you free daily uses, so everyday light encrypt/decrypt needs are covered at zero cost; for higher quotas or more frequent use, a membership unlocks more benefits. Using the basic features requires no registration or login — just open the page and start.
Online DES/2DES/3DES encryption and decryption tool, supporting all encryption modes and padding methods. Fully processed locally in the browser for security and efficiency.
Online AES encryption and decryption tool, supporting AES-128/192/256, covering all encryption modes and padding methods, secure, efficient, and easy to operate.
Online 3DES encryption/decryption tool, supporting all encryption modes and padding methods, fully processed locally in the browser to ensure data security.
Online RC4 stream cipher encryption/decryption tool, supports multiple key lengths, one-click encryption and decryption, all operations are completed locally in the browser to ensure data security.
Online Rabbit stream cipher encryption/decryption tool, using a high-speed symmetric encryption algorithm, supporting multiple key lengths. All operations are performed locally in the browser to ensure data security.
Online RC2 encryption and decryption tool, supporting ECB/CBC modes, variable key length and effective key bits, all processed locally in the browser to ensure data security.
Online IDEA International Data Encryption Algorithm Tool, supporting multiple encryption modes including ECB/CBC/CFB/OFB/CTR. All operations are performed locally in the browser to ensure data security.
Online Blowfish encryption/decryption tool supporting 128/192/256/448-bit variable keys, ECB/CBC/CFB/OFB modes, and multiple padding methods. All operations are performed locally in the browser to ensure data security.
Online SM4 National Symmetric Encryption and Decryption Tool, supporting five working modes: ECB/CBC/CFB/OFB/CTR, and multiple padding methods. All operations are performed locally in the browser to ensure data security.
Online RSA asymmetric encryption and decryption tool, supporting key pair generation, public key encryption and private key decryption, private key signing and public key verification. All operations are performed locally in the browser to ensure data security.
Online MD5 hash encryption tool, supporting 16-bit/32-bit output, case switching, and file MD5 verification. All operations are completed locally in the browser, ensuring security and efficiency.
MD2 Encryption Tool: Generate 32-bit MD2 hash values online, supporting uppercase/lowercase output and file verification.
Online SHA-1 hash calculation tool for efficient text encryption and file integrity verification.
Online SHA-256 hash calculation tool for quick text encryption and file integrity verification.
Online SHA-384 hash calculation tool for fast text encryption and file integrity verification.
Online SHA-512 hash calculation tool, supporting text encryption and file integrity verification, quickly generating secure hash values.
Online SM3 National Hash Encryption Tool, supports text hash calculation and file verification, outputs a 256-bit hash value, compliant with GM/T 0004-2012 national standard.
Online Base64 encode/decode tool, supporting text Base64 encoding and decoding, all done locally in the browser, safe and efficient.
Online URL encoding and decoding tool, supports intelligent encoding and decoding of URL parameters, automatically identifies URL structure, processes only the parameter part, completes entirely in the browser locally, safe and efficient.
Online UTF-8 encoding/decoding tool, supporting conversion between text and UTF-8 hexadecimal bytes. All processing is done locally in the browser, ensuring data security.