Documentation ¶
Index ¶
- Constants
- func B2s(b []byte) string
- func Base64(b []byte) string
- func Debase64(s string) ([]byte, error)
- func Decrypt(secret, data []byte, iteration int) ([]byte, error)
- func Encrypt(secret, data []byte, iteration int) ([]byte, error)
- func FNV(b []byte, n uint32) uint32
- func HMAC(key, data []byte) []byte
- func HMACFNV(x, y []byte, max uint32) uint32
- func InitSPIKey() ([]byte, error)
- func KDF(secret []byte, keyCount, keyLen int) ([][]byte, error)
- func KeyGen(codebook string, x, y []byte, keyLen, iteration int) func(string, string, string, int) ([]string, error)
- func MakeCodebook(codeset, mask string) string
- func Power2(n int64) int64
- func RandomBytes(size int) ([]byte, error)
- func S2b(s string) []byte
- func SPA(secret, salt []byte, keyLen, iteration int) ([]byte, error)
- func SPAKDF(raw, salt []byte, keyCount, keyLen, iteration int) ([][]byte, error)
- func SPIHash(secret, key []byte) []byte
- func SPIKey(secret, key, newSecret []byte) []byte
- func SpaceOut(s string, divisor int) string
Constants ¶
View Source
const AlphaNumeric = alpha + numeric
View Source
const AlphaNumericSymbol = alpha + numeric + symbol
View Source
const DefaultCodeset = alpha + numeric + symbol
View Source
const DefaultDivisor = 4
View Source
const EncloseEscape = "\"'()<>[]`{}\\"
View Source
const OracleCodeset = alpha + numeric + oracleSymbol
Variables ¶
This section is empty.
Functions ¶
func MakeCodebook ¶
func RandomBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.