Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encryptor ¶
type Encryptor interface { Encrypt(nonce, plaintext string) (ciphertext string, err error) Decrypt(nonce, ciphertext string) (plaintext string, err error) }
Encryptor is the encryption interface
func MustNewEncryptor ¶
func MustNewEncryptor() Encryptor
MustNewEncryptor creates a new encryptor or panic
type Keccak256Hasher ¶
type Keccak256Hasher struct{}
Keccak256Hasher is a Hasher, it was proven to be secure and used in Ethereum
func (*Keccak256Hasher) HashFaster ¶
func (k *Keccak256Hasher) HashFaster(data, salt string) string
HashFaster ...
type ScryptHasher ¶
type ScryptHasher struct {
// contains filtered or unexported fields
}
ScryptHasher is a Hasher that implements the Scrypt hashing algorithm
func (*ScryptHasher) HashFaster ¶
func (sh *ScryptHasher) HashFaster(data, salt string) string
HashFaster ...
type SecretboxEncryptor ¶
type SecretboxEncryptor struct {
// contains filtered or unexported fields
}
SecretboxEncryptor is the secretbox encryptor
Click to show internal directories.
Click to hide internal directories.