Versions in this module Expand all Collapse all v1 v1.2.0 Nov 5, 2023 Changes in this version + var ErrEmptyField error = errors.New("function parameters must not be empty") + var ErrInvalidHashFunction error = errors.New("invalid hash function was provided") + type HashFunction int + const MD5 + const SHA1 + const SHA224 + const SHA256 + const SHA384 + const SHA512 v1.1.0 Jul 1, 2021 Changes in this version + const KEY_LENGTH + const SALT_LENGTH type Config + SaltLen int v1.0.1 Jun 1, 2021 v1.0.0 May 28, 2021 Changes in this version + const DEFAULT_HASHFUNCTION + const KEYLEN + const ROUNDS + func Hash(plain string, config Config) (string, error) + func Verify(hash string, plain string) (bool, error) + type Config struct + HashFunc string + KeyLen int + Rounds int