Documentation
¶
Index ¶
- func BcryptCompare(value []byte, hash []byte) bool
- func BcryptHash(value []byte) ([]byte, error)
- func Decrypt(value []byte, passPhrase [32]byte) ([]byte, error)
- func DecryptAndVerify(value []byte, passPhrase [32]byte, hash []byte) ([]byte, error)
- func Encrypt(value []byte, passPhrase [32]byte) ([]byte, error)
- func EncryptWithHash(value []byte, passPhrase [32]byte) ([]byte, []byte, error)
- func RandomBytes(length int) (res []byte, err error)
- func RandomBytesBase64(length int) (res string, err error)
- func Sha256Compare(value []byte, hash []byte) bool
- func Sha256Hash(value []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BcryptCompare ¶
func BcryptHash ¶
func DecryptAndVerify ¶
func EncryptWithHash ¶
func RandomBytes ¶
func RandomBytesBase64 ¶
func Sha256Compare ¶
func Sha256Hash ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.