Skip to content

encrypt_to

In std/crypto.

effectful fn encrypt_to(self: Bytes, recipients: List<PublicKey<X25519>>) : Bytes

The age encryption of self to every key of recipients: any one of their private keys decrypts it. The age command line reads it.

effectful fn encrypt_to(self: String, recipients: List<PublicKey<X25519>>) : Bytes

The age encryption of the UTF-8 octets of self to recipients.