Ascon 解密

使用 Ascon 算法解密輸入資料。

輸入: 文本結果: 文本

文本輸入

執行後查看結果

範例

Example keys and passwords are public test material.

authentication failure (tampered ciphertext)

輸入

bf14bce6b9b6588c3aa63f9ddc5a0cf5f565f358b0

Expected rejection

Message contains
Unable to decrypt: authentication failed. The ciphertext, key, nonce, or associated data may be incorrect or tampered with.
金鑰
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
隨機數
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
关联資料
{"option":"Hex","string":""}
輸入
Hex
輸出
Raw
authentication failure (wrong associated data)

輸入

351880c09f9dee12c20c4ba973066bc10dd26000b6

Expected rejection

Message contains
Unable to decrypt: authentication failed. The ciphertext, key, nonce, or associated data may be incorrect or tampered with.
金鑰
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
隨機數
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
关联資料
{"option":"UTF8","string":"wrong data"}
輸入
Hex
輸出
Raw
authentication failure (wrong key)

輸入

af14bce6b9b6588c3aa63f9ddc5a0cf5f565f358b0

Expected rejection

Message contains
Unable to decrypt: authentication failed. The ciphertext, key, nonce, or associated data may be incorrect or tampered with.
金鑰
{"option":"Hex","string":"ff0102030405060708090a0b0c0d0e0f"}
隨機數
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
关联資料
{"option":"Hex","string":""}
輸入
Hex
輸出
Raw
basic decryption

輸入

af14bce6b9b6588c3aa63f9ddc5a0cf5f565f358b0

Expected answer

Hello
金鑰
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
隨機數
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
关联資料
{"option":"Hex","string":""}
輸入
Hex
輸出
Raw
longer message

輸入

9314a3fef6cc299a07b8c9e0f9e479ca0d1187e87345cf590adc572b

Expected answer

test message
金鑰
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
隨機數
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
关联資料
{"option":"Hex","string":""}
輸入
Hex
輸出
Raw
no key

輸入

af14bce6b9b6588c3aa63f9ddc5a0cf5f565f358b0

Expected rejection

Message contains
Invalid key length: 0 bytes.

Ascon-AEAD128 requires a key of exactly 16 bytes (128 bits).
金鑰
{"option":"Hex","string":""}
隨機數
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
关联資料
{"option":"Hex","string":""}
輸入
Hex
輸出
Raw
with associated data

輸入

351880c09f9dee12c20c4ba973066bc10dd26000b6

Expected answer

Hello
金鑰
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
隨機數
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}
关联資料
{"option":"UTF8","string":"metadata"}
輸入
Hex
輸出
Raw

相关工具

加密 / 編碼

操作参考

查看原始技术文檔 (English)