Vocabularycrypto.
chacha20Inputs| string | a string |
| key-bytes | 32-byte array |
| nonce-bytes | 12-byte array |
| counter | starting block counter |
OutputsWord descriptionEncrypts a string using ChaCha20, returning ciphertext bytes.
ExamplesUSING: byte-arrays crypto.chacha20 ;
"Hello" 32 <byte-array> 12 <byte-array> 1 chacha20-encrypt-string
! => B{ 215 98 139 210 58 }
Definition