Ascon Decryption Tool

Decrypt data with Ascon. Match the key, mode and other options to the source or receiving system.

Input: TextResult: Text

Text input

Run to see the result

Examples

Example keys and passwords are public test material.

authentication failure (tampered ciphertext)

Input

bf14bce6b9b6588c3aa63f9ddc5a0cf5f565f358b0

Expected rejection

Message contains
Unable to decrypt: authentication failed. The ciphertext, key, nonce, or associated data may be incorrect or tampered with.
Key
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
Nonce
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
Associated Data
{"option":"Hex","string":""}
Input
Hex
Output
Raw
authentication failure (wrong associated data)

Input

351880c09f9dee12c20c4ba973066bc10dd26000b6

Expected rejection

Message contains
Unable to decrypt: authentication failed. The ciphertext, key, nonce, or associated data may be incorrect or tampered with.
Key
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
Nonce
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
Associated Data
{"option":"UTF8","string":"wrong data"}
Input
Hex
Output
Raw
authentication failure (wrong key)

Input

af14bce6b9b6588c3aa63f9ddc5a0cf5f565f358b0

Expected rejection

Message contains
Unable to decrypt: authentication failed. The ciphertext, key, nonce, or associated data may be incorrect or tampered with.
Key
{"option":"Hex","string":"ff0102030405060708090a0b0c0d0e0f"}
Nonce
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
Associated Data
{"option":"Hex","string":""}
Input
Hex
Output
Raw
basic decryption

Input

af14bce6b9b6588c3aa63f9ddc5a0cf5f565f358b0

Expected answer

Hello
Key
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
Nonce
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
Associated Data
{"option":"Hex","string":""}
Input
Hex
Output
Raw
longer message

Input

9314a3fef6cc299a07b8c9e0f9e479ca0d1187e87345cf590adc572b

Expected answer

test message
Key
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
Nonce
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
Associated Data
{"option":"Hex","string":""}
Input
Hex
Output
Raw
no key

Input

af14bce6b9b6588c3aa63f9ddc5a0cf5f565f358b0

Expected rejection

Message contains
Invalid key length: 0 bytes.

Ascon-AEAD128 requires a key of exactly 16 bytes (128 bits).
Key
{"option":"Hex","string":""}
Nonce
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
Associated Data
{"option":"Hex","string":""}
Input
Hex
Output
Raw
with associated data

Input

351880c09f9dee12c20c4ba973066bc10dd26000b6

Expected answer

Hello
Key
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
Nonce
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
Associated Data
{"option":"UTF8","string":"metadata"}
Input
Hex
Output
Raw

Key: Must be exactly 16 bytes (128 bits). Nonce: Must be exactly 16 bytes (128 bits). Must match the nonce used during encryption. Associated Data: Must match the associated data used during encryption. Any mismatch will cause authentication failure.

Format reference: Ascon Decrypt background and specification

Related tools

Browse encryption / encoding tools