id-aes192-wrap-pad encrypt & decrypt online

Encrypt or decrypt text with id-aes192-wrap-pad and a secret. Nothing leaves your browser.

Padded with zero bytes or cut to 24 bytes.
Runs in your browser

PHP's openssl_encrypt gives no result for key wrap modes, so the old site showed an empty field. This tool calculates the result like OpenSSL 3 does.

What the tool did

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 hello world and the secret my secret until you type above.

Key · 24 bytes 9 from your secret, 15 zero bytes added
6d7920736563726574000000000000000000000000000000
6d7920736563726574000000000000000000000000000000
IV · 4 bytes none given, so zero bytes
00000000
00000000
Text in UTF-8 11 bytes, no padding needed
68656c6c6f20776f726c64
Encrypted · 24 bytes
a3b0e615514f32b914f64ade426ca962
836234edec82c91a
a3b0e615514f32b914f64ade426ca962836234edec82c91a
As Base64 what the tool shows
o7DmFVFPMrkU9kreQmypYoNiNO3sgska

from your inputzero bytespaddingciphertext

In short

What is id-aes192-wrap-pad?

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 with Padding uses a 192-bit key (12 rounds) in AES Key Wrap with Padding (RFC 5649) mode: key wrap that also accepts input of any length.

Strong cipherAES (Rijndael): No practical attack on the cipher itself is known.

How your secret becomes the key

AES-192 Key Wrap with Padding 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.

Where you meet AES
  • HTTPS and TLS
  • Wi-Fi (WPA2, WPA3)
  • Disk encryption: BitLocker, FileVault, LUKS
  • VPNs, ZIP and 7-Zip archives, password managers
Honest answer

Is it safe to use?

The cipher: strong cipher

AES. No practical attack on the cipher itself is known.

This setup: for compatibility

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?

AES Key Wrap with Padding (RFC 5649)

How Key wrap with padding mode works

Key wrap with padding (RFC 5649) is key wrap that accepts any length: it stores the real length in the integrity value and pads with zeros to a multiple of 8 bytes.

Decrypting checks the integrity value and the length: a wrong secret gives no result at all instead of garbage.

Common mistakes

Why your id-aes192-wrap-pad result doesn't match

You hashed the secret first

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.

Hex instead of Base64

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.

Spaces and line breaks

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.

Your secret is longer than the key

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.

Which cipher was it?

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-pad.

Nothing is sent anywhere. Wrong secrets give no readable text.
Compare

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-pad. 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.

CipherResult (Base64)Same as
aes-192-cbc 5N7kuiyZsVjLIJgSkSotTkOmyLqUrw5CPDgZwPHGmeD/HrFwCcCYzl28DvHI126paes192
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 Legacy5N7kuiyZsVjLIJgSkSotTsDk3AMrKWsiSPX3N7kIqDlWkPL7kdOPh2Pv+DZIvz7M
aes-192-gcm no result
aes-192-ocb no result
aes-192-ofb rCX4idvhRbbJ2FLFgJQ8Z/p8o8QX5r7cbByC90psZtFJb5i6/be6IZSwEA==
aes192 5N7kuiyZsVjLIJgSkSotTkOmyLqUrw5CPDgZwPHGmeD/HrFwCcCYzl28DvHI126paes-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=
Test values

id-aes192-wrap-pad 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.

Textid-aes192-wrap-pad (Base64)
empty string
aOI8SZEB8lNzeBSBAxIZe5w==
hello worldo7DmFVFPMrkU9kreQmypYoNiNO3sgska
0123456789abcdefgvXXlokU8o8iFB7hUeMbOhEc2GN+sjBl
The quick brown fox jumps over the lazy dogbr8eyQ4kov7TRa9nPT73ld0lUrzE8vwR0W8IVUZkN2/Xq+0H1oWQIsOi0Rw6bU9RxBhVmCKKt5I=
FAQ

Questions about id-aes192-wrap-pad

Can id-aes192-wrap-pad 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-pad 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.

Good to know

Before you rely on it

Searches the list of pages on this site. What you type stays in your browser.