Copyright | © 2018-2021 IOHK |
---|---|
License | Apache-2.0 |
Safe Haskell | None |
Language | Haskell2010 |
Generating and verifying hashes of wallet passwords.
Synopsis
- encryptPassphrase :: MonadRandom m => Passphrase "encryption" -> m PassphraseHash
- checkPassphrase :: Passphrase "encryption" -> PassphraseHash -> Either ErrWrongPassphrase ()
- preparePassphrase :: Passphrase "user" -> Passphrase "encryption"
- genSalt :: MonadRandom m => m ( Passphrase "salt")
Documentation
encryptPassphrase :: MonadRandom m => Passphrase "encryption" -> m PassphraseHash Source #
Encrypt a
Passphrase
into a format that is suitable for storing on disk
checkPassphrase :: Passphrase "encryption" -> PassphraseHash -> Either ErrWrongPassphrase () Source #
preparePassphrase :: Passphrase "user" -> Passphrase "encryption" Source #
genSalt :: MonadRandom m => m ( Passphrase "salt") Source #