Crate private_box[−][src]
Structs
PublicKey |
|
SecretKey |
|
Constants
PUBLICKEYBYTES |
Number of bytes in a |
SECRETKEYBYTES |
Number of bytes in a |
Functions
decrypt |
Attempt to decrypt a private-box message, using your secret key. If you were an intended recipient then the decrypted message is returned as |
encrypt |
Takes the message you want to encrypt, and an array of recipient public keys. Returns a message that is encrypted to all recipients and openable by them with |
init |
libsodium must be initialised before calling |