Documentation ¶
Index ¶
- Constants
- func DeriveKey(password string, salt []byte, keyLength, scrypt_N int) []byte
- func DeriveKeyWithoutSalt(password string, keyLength, scrypt_N int) []byte
- func GeneratePassword(length int, useComplex bool) (string, error)
- func HashMD5(data []byte) string
- func HashSHA1(data []byte) string
- func HashSHA256(data []byte) string
- func HashSHA3(data []byte) string
- func HashSHA512(data []byte) string
- func HmacSHA256(data, key []byte) []byte
- func HmacSHA256_hex(data, key []byte) string
- func HmacSHA256_verify(data, key, expectedHMAC []byte) bool
- func HmacSHA256_verify_hex(data, key []byte, hex_hmac string) bool
- func HmacSHA3(data, key []byte) []byte
- func HmacSHA3_hex(data, key []byte) string
- func HmacSHA3_verify(data, key, expectedHMAC []byte) bool
- func HmacSHA3_verify_hex(data, key []byte, hex_hmac string) bool
- func HmacSHA512(data, key []byte) []byte
- func HmacSHA512_hex(data, key []byte) string
- func HmacSHA512_verify(data, key, expectedHMAC []byte) bool
- func HmacSHA512_verify_hex(data, key []byte, hex_hmac string) bool
- func Pbkdf2Key(password string, salt []byte, keyLength, iterations int) []byte
- func RandomBytes(len int) ([]byte, error)
Constants ¶
View Source
const SALT_LENGTH = 16
View Source
const SCRYPT_N = 32768
Variables ¶
This section is empty.
Functions ¶
func DeriveKeyWithoutSalt ¶
func HashSHA256 ¶
func HashSHA512 ¶
func HmacSHA256 ¶
func HmacSHA256_hex ¶
func HmacSHA256_verify ¶
func HmacSHA256_verify_hex ¶
func HmacSHA3_hex ¶
func HmacSHA3_verify ¶
func HmacSHA3_verify_hex ¶
func HmacSHA512 ¶
func HmacSHA512_hex ¶
func HmacSHA512_verify ¶
func HmacSHA512_verify_hex ¶
func RandomBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.