SuperDevTools

Decrypt AES 192 CBC online

Decrypt AES-192-CBC text online

This tool recovers the plaintext of a Base64-encoded AES-192-CBC message from its 24-byte key and its IV. To go the other way, use the encrypt AES 192 CBC page.

AES-192 is the least common key size. It mostly turns up in Java or .NET applications whose configuration calls for a 24-byte key, and in exchanges with older systems.

How to decrypt AES-192-CBC text

  1. Paste the Base64-encoded ciphertext into the text area.
  2. Type the key into the Salt field (despite the label, it is the key): 24 characters for AES-192.
  3. Enter the 16-character IV used for encryption in IV (optional).
  4. Click Decrypt, then Copy to grab the plaintext.

A key that is too short is padded with null bytes; one that is too long is cut to 24 bytes. If the IV is left empty, the tool uses the fixed IV of the site's AES-192-CBC encryption page, so that only suits messages encrypted there without an IV. The work is done on the server with OpenSSL: text and key are sent over HTTPS and are not stored. To be on the safe side, do not paste production secrets.

CBC mode and the 192-bit key

When decrypting CBC, each 16-byte block is first decrypted with the key and then XORed with the previous ciphertext block; for the first block, the IV plays that part. A block damaged in transit therefore spoils only itself and the block after it, not the whole message.

An AES-192 key is 24 bytes, or 24 plain characters, and the algorithm runs 12 rounds instead of the 10 used by AES-128. Watch out for a classic trap: a 24-character key ending in == is very likely a 16-byte key encoded in Base64, which makes it an AES-128 key. The other way round, a 16-character key typed here is padded with 8 null bytes, and the result has nothing in common with AES-128 decryption.

Decryption fails or returns nothing: common causes

On failure, the result box shows false or error instead of text. Things to check:

  • Wrong key: it must match character for character (case, a stray space or line break).
  • Wrong IV: the field was left empty although the sender used their own, or the IV is not 16 characters long.
  • Wrong mode or key size: an AES-256-CBC or AES-192-ECB message will not decrypt here. Use decrypt AES 256 CBC or decrypt AES 192 ECB instead.
  • Input that is not Base64: hex ciphertext, URL-safe Base64 with - and _, or a message cut short while copying.
  • Password-derived key: CryptoJS with a passphrase or openssl enc -pbkdf2 compute the key and IV from a password and a salt. Such messages start with U2FsdGVkX1, and the tool does not handle that derivation.

The equivalent OpenSSL command

openssl enc -d -aes-192-cbc -a -A -K KEY_HEX -iv IV_HEX -in message.txt

Here the key is written as 48 hex characters (24 bytes) and the IV as 32 hex characters (16 bytes).

Frequently asked questions

Is AES-192 more secure than AES-128?

The key is longer and the algorithm runs two more rounds, but both sizes are considered strong. In practice the size is set by the system that encrypted the message.

The start of the text is garbled and the rest is fine. Why?

That is the signature of a wrong IV with the right key: only the first 16 bytes depend on the IV. Ask the sender for the exact IV of that message.

Does the IV have to stay secret?

No, it can travel in the clear with the message. It should change with every encryption, though, which a fixed IV does not do.