class Sodium::CryptoBox::PublicKey
- Sodium::CryptoBox::PublicKey
- Sodium::Key
- Reference
- Object
Defined in:
sodium/crypto_box/public_key.crConstant Summary
-
KEY_SIZE =
LibSodium.crypto_box_publickeybytes.to_i
-
SEAL_SIZE =
LibSodium.crypto_box_sealbytes
Constructors
Instance Method Summary
-
#encrypt(src, dst : Bytes? = nil)
Anonymously send messages to a recipient given its public key.
-
#to_slice : Bytes
Returns key