keyBytes static method
The length (in bytes) the encryptionKey must be.
This static method uses sodium
to get the correct key length at
runtime. You can use it to generate an encryption key of the correct
length.
Implementation
static int keyBytes(Sodium sodium) => sodium.crypto.secretBox.keyBytes;