View Source Nostr.Crypto.AES256CBC (Nostr v0.1.3)
Algorithm that encrypts and decrypts direct messages
Link to this section Summary
Link to this section Functions
@spec decrypt(String.t(), K256.Schnorr.signing_key(), K256.Schnorr.verifying_key()) :: {:ok, String.t()} | {:error, atom() | String.t()}
@spec encrypt( String.t(), K256.Schnorr.signing_key() | <<_::256>>, K256.Schnorr.verifying_key() | <<_::256>> ) :: String.t()