aria-192-gcm encrypt & decrypt online

Encrypt or decrypt text with aria-192-gcm and a secret. Nothing leaves your browser.

This mode needs an authentication tag.
Runs in your browser

PHP's openssl_encrypt needs a tag variable for this mode and returns no result without it. Like on the old site, the result stays empty. For working encryption use aes-256-cbc.

In short

What is aria-192-gcm?

ARIA is a block cipher from South Korea (2003), the national standard KS X 1213 and RFC 5794. It has the same interface as AES: 16-byte blocks and 128, 192 or 256-bit keys. ARIA-192-GCM is authenticated encryption: besides the ciphertext it produces a tag that proves nobody changed it. In PHP it needs a tag variable, so this tool, like the old site, gives no result.

Strong cipherARIA: No practical attack on the cipher itself is known.
Where you meet ARIA
  • South Korean government and banking systems
  • TLS cipher suites (RFC 6209)
Honest answer

Is it safe to use?

The cipher: strong cipher

ARIA. 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?

Authenticated encryption (AEAD)

How authenticated modes work

Authenticated modes (GCM, CCM, OCB, Poly1305) encrypt and at the same time compute a tag over the data. Decryption checks the tag first and fails if anything was changed. This is what you want for real encryption.

PHP's openssl_encrypt only returns a result for these modes if you pass a variable for the tag and a nonce. The old site did neither, so the result was always empty, and this tool keeps it that way.

Common mistakes

Why aria-192-gcm gives no result

Why the result is empty

Authenticated modes need a nonce and produce a tag. PHP's openssl_encrypt returns false when you don't pass a tag variable, and the old site didn't. See the code example for how to use the mode correctly.

Reusing a nonce

In GCM, the same nonce twice with the same key reveals the XOR of the two texts and lets an attacker forge tags. Use 12 random bytes per message, or a counter that never repeats.

Throwing away the tag

The 16-byte tag is part of the message. Store or send it together with the nonce and the ciphertext; decryption without it is impossible, and skipping the check gives up the protection.

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 aria-192-gcm.

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

Every ARIA-192 variant, same input

The text The quick brown fox jumps over the lazy dog (43 bytes) with the secret my secret in all 10 ARIA-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 aria-192-gcm. 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
aria-192-cbc Eauk5NDmbZh+klDkywRmTB6XDWqdgQOEpODgV21l+e0qjHbhUC9HEy3GlFPYye8Daria192
aria-192-ccm no result
aria-192-cfb M2ohSOnfNYvu6TIunwk9DUG+905OvU6RcSXiyibDRCIM5cabe5U0dk6w7g==
aria-192-cfb1 ZlRZcv7YFHedyFuUYlj9J5hDRCTyea1qIRQQLWVXQ8n4aw7U8vI1m3Tw1Q==
aria-192-cfb8 M3H0P+T6BFWYASwuHl9g6JuOX7tqvDQzNoyhoH9p7R+15/2030BC8VeMPg==
aria-192-ctr M2ohSOnfNYvu6TIunwk9Db42Z21dbWoVSNLq/5+8LVtJfJttNpoWpU9moQ==
aria-192-ecb LegacyEauk5NDmbZh+klDkywRmTJRUhJzqc7xVS4ZljTov8CwFm7HACbvOi4/W62Aqbwpo
aria-192-gcm no result
aria-192-ofb M2ohSOnfNYvu6TIunwk9DXEIvOnXeY8rOPNi8Zn2wMY+yu8VU5akEGKLUQ==
aria192 Eauk5NDmbZh+klDkywRmTB6XDWqdgQOEpODgV21l+e0qjHbhUC9HEy3GlFPYye8Daria-192-cbc
FAQ

Questions about aria-192-gcm

Why is the aria-192-gcm result empty?

Because PHP's openssl_encrypt returns false for authenticated modes when no tag variable is passed, and the old site passed none. The tool keeps that behaviour so old results stay comparable. Use the code example to encrypt with a nonce and tag.

Is ARIA-192-GCM secure?

Yes, when used correctly: ARIA-192-GCM with a random, never repeated nonce and the tag checked on decryption is a recommended way to encrypt data today.

Good to know

Before you rely on it

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