idea encrypt & decrypt online
LegacyEncrypt or decrypt text with idea and a secret. Same result as PHP's openssl_encrypt, and nothing leaves your browser.
Introduction to International Data Encryption Algorithm (IDEA)
International Data Encryption Algorithm (IDEA) is a symmetric key encryption algorithm that is widely used for secure data transmission. IDEA was first proposed in 1991 by James Massey of ETH Zurich and Xuejia Lai of the Chinese Academy of Sciences. It was later standardized by ISO as ISO/IEC 18033-3.
Key Features of IDEA
- IDEA uses a symmetric key of 128 bits.
- It operates on 64-bit blocks of data.
- IDEA uses a complex round structure that includes substitution, permutation, and modular addition and multiplication.
- IDEA has a key schedule that generates round keys from the user-supplied key.
How IDEA Works
IDEA encrypts and decrypts data in 64-bit blocks using a 128-bit key. The encryption process consists of eight rounds of substitution, permutation, and modular addition and multiplication operations. The decryption process is the reverse of the encryption process.
The key schedule generates round keys from the user-supplied key. The round keys are used in the encryption and decryption process.
Security of IDEA
IDEA is considered to be highly secure. It has withstood various cryptanalysis attempts, and no practical attacks against IDEA have been found. IDEA's security is based on the difficulty of solving the discrete logarithm problem in a finite field.
Use Cases of IDEA
IDEA is widely used in various applications that require secure data transmission. Some examples include:
- Virtual Private Networks (VPNs)
- Electronic mail and file encryption
- Secure telephony
- Secure instant messaging
- Secure file transfer
Comparison with AES
AES is a widely used encryption algorithm that was adopted as a standard by the U.S. government. AES is similar to IDEA in that it is a symmetric key encryption algorithm that operates on fixed block sizes. However, AES uses a fixed block size of 128 bits and a fixed key size of 128, 192, or 256 bits.
In terms of security, both AES and IDEA are considered to be highly secure. However, AES has a larger key size and is thus considered to be more secure than IDEA.
graph TD;
IDEA-->|128-bit Key|Symmetric Key Encryption;
IDEA-->|64-bit Blocks|Data Encryption;
IDEA-->|Substitution, Permutation, Modular Arithmetic|Encryption Method;
IDEA-->|Discrete Logarithm Problem|Security;
IDEA-->|VPNs, Email and File Encryption, Secure Telephony|Use Cases;
AES-->|128-bit Key|Symmetric Key Encryption;
AES-->|128-bit Blocks|Data Encryption;
AES-->|Substitution, Permutation, Modular Arithmetic|Encryption Method;
AES-->|Discrete Logarithm Problem|Security;
AES-->|Widely used in Government and Industry|Use Cases;
In conclusion, IDEA is a secure and widely used encryption algorithm that is suitable for various applications that require secure data transmission. While AES is the more recent standard and considered more secure due to its larger key size, IDEA remains a strong choice for secure communication.
The same result in your code
With the text hello world and the secret my secret the tool gives exactly what PHP gives. Use it to check your own code.
echo openssl_encrypt("hello world", "idea", "my secret"); // 6cYcy5ZUGh/49wmuAT6x6w==