id-aes192-wrap encrypt & decrypt online
Encrypt or decrypt text with id-aes192-wrap and a secret. Nothing leaves your browser.
The bytes behind your result
Your code gives a different result? Almost always the key or the IV differ. Here you see exactly which bytes the tool used for the secret and text in the tool above: copy the key and IV in hex into your own code. Shown for the text 0123456789abcdef and the secret my secret until you type above.
- Key · 24 bytes 9 from your secret, 15 zero bytes added
- 6d7920736563726574000000000000000000000000000000
6d7920736563726574000000000000000000000000000000 - IV · 8 bytes none given, so zero bytes
- 0000000000000000
0000000000000000 - Text in UTF-8 16 bytes, no padding needed
- 30313233343536373839616263646566
- Encrypted · 24 bytes
- e92a1b21014c20f8dec17ee959b93ec91fadbddfb7735933
e92a1b21014c20f8dec17ee959b93ec91fadbddfb7735933 - As Base64 what the tool shows
6SobIQFMIPjewX7pWbk+yR+tvd+3c1kz
from your inputzero bytesciphertext
What is id-aes192-wrap?
AES is the block cipher NIST standardised in 2001 (FIPS 197), originally called Rijndael. It is the most widely used cipher today and has no practical attack. PHP's openssl_encrypt returns nothing for key wrap modes, so the old site showed an empty field; this tool calculates the result like OpenSSL 3. AES-192 Key Wrap uses a 192-bit key (12 rounds) in AES Key Wrap (RFC 3394) mode: a mode for protecting other keys, with a built-in integrity check.
How your secret becomes the key
AES-192 Key Wrap needs exactly 24 bytes (192 bits) of key. The tool takes your secret as UTF-8 bytes and pads it with zero bytes to 24 bytes, or cuts it after 24 bytes.
- HTTPS and TLS
- Wi-Fi (WPA2, WPA3)
- Disk encryption: BitLocker, FileVault, LUKS
- VPNs, ZIP and 7-Zip archives, password managers
Is it safe to use?
AES. No practical attack on the cipher itself is known.
The setup of this tool is made for compatibility with PHP's openssl_encrypt, not for protecting secrets: the IV is always zero, the secret is used as the key without a key derivation function, and nothing detects changes to the ciphertext.
For real secrets use an authenticated mode such as AES-256-GCM or ChaCha20-Poly1305 with a fresh random nonce for every message, and derive the key from a password with Argon2id, scrypt or PBKDF2. What is a key derivation function?
How Key wrap mode works
Key wrap (RFC 3394, NIST SP 800-38F) encrypts keys, not messages. It adds an 8-byte integrity check and runs the cipher in six passes over the data. The input must be a multiple of 8 bytes and at least 16 bytes long, so most typed text gives no result.
Decrypting checks the integrity value: a wrong secret gives no result at all instead of garbage.
Why your id-aes192-wrap result doesn't match
Key wrap needs a multiple of 8 bytes and at least 16 bytes. A typed sentence rarely fits. Use the "with padding" variant for any length.
Many tutorials turn a password into a key with SHA-256 or MD5. This tool doesn't: it uses the bytes of your secret directly and pads them with zero bytes. Copy the key in hex from What the tool did and use it as the raw key.
The tool shows the raw ciphertext bytes as Base64. Many libraries return hex or raw bytes. Convert before comparing, or compare with the hex blocks in What the tool did.
Like the old site, the tool trims spaces and line breaks at the start and end of the text and the secret, and sends line breaks as CRLF (\r\n), as a browser form does. echo "text" | in a shell adds a line break at the end.
Only the first bytes up to the key length count, the rest is cut off. Two secrets that start with the same bytes give the same result. Non-ASCII characters take 2–4 bytes in UTF-8, so they fill the key faster.
Encrypted something here years ago?
Paste the Base64 result and the secret. Your browser tries all 174 ciphers of this site and shows those that give readable text. Useful if you don't remember the cipher, or to check whether your ciphertext really is id-aes192-wrap.
Every AES-192 variant, same input
The text The quick brown fox jumps over the lazy dog (43 bytes) with the secret my secret in all 16 AES-192 ciphers. The last column lists names that give the same result: aliases, and modes that agree for this input. Highlighted: the same start as id-aes192-wrap. Watch how CBC and ECB share the first block, and CFB, OFB and CTR the first 16 bytes. Type a text and a secret in the tool above to use yours.
| Cipher | Result (Base64) | Same as |
|---|---|---|
| aes-192-cbc | 5N7kuiyZsVjLIJgSkSotTkOmyLqUrw5CPDgZwPHGmeD/HrFwCcCYzl28DvHI126p | aes192 |
| aes-192-ccm | no result | |
| aes-192-cfb | rCX4idvhRbbJ2FLFgJQ8Z/pbPYyWkPRnqyA2dFw0nBl71IpTOZRskzVt+w== | |
| aes-192-cfb1 | 4ax+RGh+oFjenr6RV4qlCvq4XNz9DQThfc0XH7VlPw9qJEI+Hl3Fnk9dig== | |
| aes-192-cfb8 | rFSLKFKaOd4jl922/qJTBg+xY9Sos71GYxUrQ54vzVsIER3q3sngCQ6CkQ== | |
| aes-192-ctr | rCX4idvhRbbJ2FLFgJQ8Z1ck5Vou2bQ5T8T4sxSti90pMrooA2hRhP4KQQ== | |
| aes-192-ecb Legacy | 5N7kuiyZsVjLIJgSkSotTsDk3AMrKWsiSPX3N7kIqDlWkPL7kdOPh2Pv+DZIvz7M | |
| aes-192-gcm | no result | |
| aes-192-ocb | no result | |
| aes-192-ofb | rCX4idvhRbbJ2FLFgJQ8Z/p8o8QX5r7cbByC90psZtFJb5i6/be6IZSwEA== | |
| aes192 | 5N7kuiyZsVjLIJgSkSotTkOmyLqUrw5CPDgZwPHGmeD/HrFwCcCYzl28DvHI126p | aes-192-cbc |
| aes192-wrap | no result | |
| id-aes192-ccm | no result | |
| id-aes192-gcm | no result | |
| id-aes192-wrap | no result | |
| id-aes192-wrap-pad | br8eyQ4kov7TRa9nPT73ld0lUrzE8vwR0W8IVUZkN2/Xq+0H1oWQIsOi0Rw6bU9RxBhVmCKKt5I= |
id-aes192-wrap test values
Results for common test strings with the secret my secret (UTF-8, no line break, zero IV), exactly as the tool and PHP's openssl_encrypt give them. Use them to check your own implementation.
| Text | id-aes192-wrap (Base64) |
|---|---|
| empty string | |
a | no result |
hello world | no result |
0123456789abcdef | 6SobIQFMIPjewX7pWbk+yR+tvd+3c1kz |
The quick brown fox jumps over the lazy dog | no result |
Questions about id-aes192-wrap
Can id-aes192-wrap be decrypted without the secret?
No. Without the secret there is no shortcut. A short or common secret can be guessed, though, because the tool uses it directly as the key.
Why does my id-aes192-wrap code give a different result?
Almost always because of the key or the IV: the tool pads your secret with zero bytes instead of hashing it and uses a zero IV. Also check Base64 vs hex, padding, and spaces or line breaks the tool trims.
Is AES-192 secure?
AES-192 itself has no practical attack. What makes a setup weak is a guessable key, a reused IV or missing authentication.
How long should my secret be?
Exactly 24 bytes (192 bits) fills the key; anything after that is ignored. For real security a random key is better than a typed word.