Documentation ¶
Index ¶
- func Decode(str string) string
- func Encode(str string) string
- type CRCGenerator
- type Crypt
- func (c *Crypt) Checksum(seed string) string
- func (c *Crypt) Decrypt(data []byte) ([]byte, error)
- func (c *Crypt) Encrypt(data []byte) ([]byte, error)
- func (c *Crypt) GetCRCGenerator() *CRCGenerator
- func (c *Crypt) InitGenerator(seed string)
- func (c *Crypt) NewHashAndSalt(str string) (hash, salt string)
- func (c *Crypt) VerifyPassword(pwd, salt, hash string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CRCGenerator ¶ added in v0.0.14
CRCGenerator -- (PSEUDO-RANDOM REPLICABLE SEEDED GENERATION)
func NewCRCGenerator ¶ added in v0.0.14
func NewCRCGenerator(generatorPoly uint64) *CRCGenerator
func (*CRCGenerator) GenChecksum ¶ added in v0.0.14
func (g *CRCGenerator) GenChecksum(seed string) string
func (*CRCGenerator) GenerateHash ¶ added in v0.0.16
func (g *CRCGenerator) GenerateHash(seed string) uint64
func (*CRCGenerator) Init ¶ added in v0.0.14
func (g *CRCGenerator) Init(seed string)
type Crypt ¶
type Crypt struct {
// contains filtered or unexported fields
}
func New ¶
New -- CRYPTO KEY 32 LEN BYTE KEY generatorPoly - UINT64 POLY FOR CRC TABLE (PSEUDO-RANDOM REPLICABLE SEEDED GENERATION) [DEPRECATED] - InitGenerator NEEDS TO BE CALLED WITH YOUR PROVIDED SEED TO SEED THE RANDOM GENERATOR FOR REPLICABLE GENERATION
func (*Crypt) GetCRCGenerator ¶ added in v0.0.15
func (c *Crypt) GetCRCGenerator() *CRCGenerator
func (*Crypt) InitGenerator ¶ added in v0.0.14
func (*Crypt) NewHashAndSalt ¶
func (*Crypt) VerifyPassword ¶
Click to show internal directories.
Click to hide internal directories.