Cryptography & Ciphers
Twofish Encryption
Apply Twofish Encrypt with explicit key, format, and algorithm settings. Enter the data and key material, choose the parameters, then review the result.
This tool runs open-source code from CyberChef by GCHQ (Apache License 2.0). See open-source credits.
Twofish Encryption uses Twofish block encryption to process the supplied input. It returns ciphertext for the supplied plaintext bytes. The 128-bit block construction accepts three key sizes and exposes CBC, CFB, OFB, CTR, and ECB.
It returns ciphertext for the supplied plaintext bytes. The 128-bit block construction accepts three key sizes and exposes CBC, CFB, OFB, CTR, and ECB. Processing runs in the browser for this catalog category, so the result depends on the supplied bytes and settings. Processing runs in the browser.
This tool performs the selected algorithm locally; it does not provide application trust or key management.
Instructions
- Provide text or data for this tool.
- Use disposable test material; the zero IV is only a reproducible example. This applies to Twofish Encryption.
- Keep the complete ciphertext and settings for the paired decrypt operation. This applies to Twofish Encryption.
Example
Input: Use ASCII abc, CBC, key 000102030405060708090a0b0c0d0e0f in Hex, and an all-zero 16-byte IV.
Settings: Twofish Encryption: Key length: 16, 24, or 32 bytes. Non-ECB IV length: 16 bytes. Use Padding PKCS5 for the sample and a complete 16-byte IV outside ECB. Input: Raw; Output: Hex for a transferable ciphertext fixture.
Result: It returns ciphertext for the supplied plaintext bytes. The 128-bit block construction accepts three key sizes and exposes CBC, CFB, OFB, CTR, and ECB. Processing runs in the browser for this catalog category, so the result depends on the supplied bytes and settings.
Limits
- Twofish Encryption: 16-byte blocks determine alignment requirements when padding is disabled.
- Twofish Encryption: These modes do not add an authentication tag or manage keys.