Documentation ¶
Index ¶
- func Decrypt(cipher, salt string, key *rsa.PrivateKey, fn func() hash.Hash) (string, error)
- func Encrypt(text, salt string, key *rsa.PublicKey, fn func() hash.Hash) (string, error)
- func GenerateKey(bits int) (*rsa.PrivateKey, error)
- func HashGenerate(text, salt string, fn func() hash.Hash) string
- func HashVerify(text, cipherText, salt string, fn func() hash.Hash) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKey ¶
func GenerateKey(bits int) (*rsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.