Beispiele
Example keys and passwords are public test material.
authentication failure (tampered ciphertext)
Eingabe
bf14bce6b9b6588c3aa63f9ddc5a0cf5f565f358b0Expected rejection
Message containsUnable to decrypt: authentication failed. The ciphertext, key, nonce, or associated data may be incorrect or tampered with.- Schlüssel
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}- Nonce
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}- Zugehörige Daten
{"option":"Hex","string":""}- Eingabe
Hex- Ausgabe
Raw
authentication failure (wrong associated data)
Eingabe
351880c09f9dee12c20c4ba973066bc10dd26000b6Expected rejection
Message containsUnable to decrypt: authentication failed. The ciphertext, key, nonce, or associated data may be incorrect or tampered with.- Schlüssel
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}- Nonce
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}- Zugehörige Daten
{"option":"UTF8","string":"wrong data"}- Eingabe
Hex- Ausgabe
Raw
authentication failure (wrong key)
Eingabe
af14bce6b9b6588c3aa63f9ddc5a0cf5f565f358b0Expected rejection
Message containsUnable to decrypt: authentication failed. The ciphertext, key, nonce, or associated data may be incorrect or tampered with.- Schlüssel
{"option":"Hex","string":"ff0102030405060708090a0b0c0d0e0f"}- Nonce
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}- Zugehörige Daten
{"option":"Hex","string":""}- Eingabe
Hex- Ausgabe
Raw
basic decryption
Eingabe
af14bce6b9b6588c3aa63f9ddc5a0cf5f565f358b0Expected answer
HelloHello
- Schlüssel
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}- Nonce
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}- Zugehörige Daten
{"option":"Hex","string":""}- Eingabe
Hex- Ausgabe
Raw
longer message
Eingabe
9314a3fef6cc299a07b8c9e0f9e479ca0d1187e87345cf590adc572bExpected answer
test messagetest message
- Schlüssel
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}- Nonce
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}- Zugehörige Daten
{"option":"Hex","string":""}- Eingabe
Hex- Ausgabe
Raw
no key
Eingabe
af14bce6b9b6588c3aa63f9ddc5a0cf5f565f358b0Expected rejection
Message containsInvalid key length: 0 bytes.
Ascon-AEAD128 requires a key of exactly 16 bytes (128 bits).- Schlüssel
{"option":"Hex","string":""}- Nonce
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}- Zugehörige Daten
{"option":"Hex","string":""}- Eingabe
Hex- Ausgabe
Raw
with associated data
Eingabe
351880c09f9dee12c20c4ba973066bc10dd26000b6Expected answer
HelloHello
- Schlüssel
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}- Nonce
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}- Zugehörige Daten
{"option":"UTF8","string":"metadata"}- Eingabe
Hex- Ausgabe
Raw