← all modules

Sky.Core.Crypto

Sky.Core.Crypto
  Sky.Core.Crypto — hash + MAC + signature + symmetric-cipher +

Values
  aesGcmDecrypt : String -> String -> Result Error String
      `aesGcmDecrypt key encoded` — decrypt the output of
  aesGcmEncrypt : String -> String -> Result Error String
      `aesGcmEncrypt key plaintext` — encrypt under AES-256-GCM.
  aesKeyFromPassword : String -> String -> String
      `aesKeyFromPassword password salt` — derive a 32-byte
  chacha20Decrypt : String -> String -> Result Error String
      `chacha20Decrypt key encoded` — decrypt the output of
  chacha20Encrypt : String -> String -> Result Error String
      `chacha20Encrypt key plaintext` — encrypt under
  chachaKeyFromPassword : String -> String -> String
      `chachaKeyFromPassword password salt` — same as
  constantTimeEqual : String -> String -> Bool
  hmacSha256 : String -> String -> String
  hmacSha512 : String -> String -> String
  md5 : String -> String
  randomBytes : Int -> Task Error String
  randomToken : Int -> Task Error String
  rsaSha256Sign : String -> String -> Result Error String
  rsaSha256Verify : String -> String -> String -> Bool
  sha1 : String -> String
  sha256 : String -> String
  sha512 : String -> String