K014 / Symmetric ciphers (block and stream)
SEED
SEED is a 128-bit symmetric block cipher developed by KISA.
CRYPTOGRAPHY LAB / K014
Cryptography Lab · SEED
Run real computations and inspect intermediate states step by step.
Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.
SEED (16 rounds)
See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.Output
Previous state
- Definition and overview
- SEED is a 128-bit symmetric block cipher developed by KISA. Source document ↗
- Classification and reversibility
- SEED is a reversible symmetric block cipher requiring a secret key, with a defined decryption procedure. Source document ↗
- Key or secret requirements
- Decryption requires a 128-bit secret key. Source document ↗
- Operating principle and structure
- A 16-round Feistel structure using a 128-bit block and 128-bit key. Source document ↗
- Key size, block size and parameters
- 128-bit block and key, 16-round Feistel and two 8×8 S-boxes. Source document ↗
- Security strength and recommendation
- Classified as legacy; AES-GCM is recommended except for integration with systems requiring SEED. Source document ↗
- Known attacks and vulnerabilities
- No known practical attacks, but less analysis and hardware support than AES. Source document ↗
- Standards and certification
- KISA's Korean national block cipher, specified in RFC 4269 and TTAS.KO-12.0004. Source document ↗
- Typical uses
- Widely used in Korean online banking and e-commerce in the early 2000s. Source document ↗
- Implementations, libraries and tools
- The TypeScript implementation kisa-seed is available as an npm package. Source document ↗
- Decryption or decoding
- Call a decryption function to restore Base64-formatted ciphertext to plaintext. Source document ↗
- Advantages
- Widely adopted in Korean security systems, aiding legacy integration. Source document ↗
- Limitations and cautions
- As a legacy cipher, avoid uses other than existing integration; replace with modern algorithms such as AES-GCM. Source document ↗
- Distinguishing encryption, encoding and hashing
- SEED ciphertext bytes can be represented using Base64 encoding. Base64 is not encryption and must be decoded before decryption. Source document ↗
Practical examples
Example
Pad plaintext bytes to 128-bit blocks, encrypt with SEED-CBC using secret key and IV, and Base64-encode ciphertext for storage or transmission. Decode Base64, decrypt with the same key/IV and remove padding.
Procedure
1) Specify mode, key, IV and padding. 2) Pad plaintext and encrypt with SEED. 3) Encode ciphertext as Base64 if needed. Decrypt by Base64 decoding, SEED decryption and removing padding. Encryption/decryption provides confidentiality; encoding/decoding changes representation.
Scenario
Use only when partners such as existing Korean financial or public-sector systems require SEED, matching mode, IV, padding and encoding. Prioritize modern algorithms for new designs and apply key management and integrity protection if unavoidable.
Pitfalls and alternatives
SEED is legacy and has less analysis and hardware support than AES. Avoid ECB, fixed IV and key reuse; prioritize recommended algorithms such as AES-GCM. Do not mistake Base64 for encryption or hashing; test endianness, padding and IV compatibility.