ChaChaPoly.Decrypt¶
| Name | Mandatory | Description | Default | Type | 
|---|---|---|---|---|
| ⬅️ Input | The encrypted byte array to decrypt. | Bytes | ||
| Output ➡️ | The decrypted byte array. | Bytes | ||
| Key | No | The private key to be used to encrypt/decrypt the input. Must be 32 bytes long. | none | BytesVar(Bytes) | 
This shard decrypts an input ChaCha20-Poly1305 encrypted byte array using the provided key (provided in the Key parameter). It then outputs the decrypted byte array.
Details¶
If the wrong key was provided in the Key parameter to decrypt the input, the shard will throw an error.