ChaChaPoly.Encrypt¶
| Name | Mandatory | Description | Default | Type | 
|---|---|---|---|---|
| ⬅️ Input | The string or byte array to encrypt. | StringBytes | ||
| Output ➡️ | The encrypted 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 takes the input string or byte array and encrypts it using the ChaCha20-Poly1305 algorithm with the provided key (provided in the Key parameter). It then outputs the encrypted byte array.