piazza_core v0.1.3 Piazza.Crypto.RSA
Link to this section Summary
Link to this section Types
Link to this type
keypair()
keypair() :: {ExPublicKey.RSAPrivateKey.t(), ExPublicKey.RSAPublicKey.t()}
Link to this section Functions
Link to this function
decrypt(str, pub)
decrypt(binary(), ExPublicKey.RSAPublicKey.t()) :: {:ok, binary()} | {:error, term()}
Link to this function
encrypt(str, priv)
encrypt(binary(), ExPublicKey.RSAPrivateKey.t()) :: {:ok, binary()} | {:error, term()}
Link to this function