Documentation ¶
Index ¶
- func CompareEncryption(value string, hash string, pepper string) (bool, error)
- func ConstantTimeStringCompare(a, b string) bool
- func GenerateDefaultEncryption(value string, pepper string) (string, error)
- func GenerateEncryptionWithParams(cryptoParams *CryptoParams) (string, error)
- func GenerateSalt(length uint32) []byte
- type CryptoParams
- type HashSalt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareEncryption ¶
func GenerateEncryptionWithParams ¶
func GenerateEncryptionWithParams(cryptoParams *CryptoParams) (string, error)
func GenerateSalt ¶
Types ¶
type CryptoParams ¶
type CryptoParams struct { Salt []byte Pepper string Iterations int Length int // contains filtered or unexported fields }
func ParseEncryption ¶
func ParseEncryption(value string, hash string, pepper string) (*CryptoParams, error)
Click to show internal directories.
Click to hide internal directories.