Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface {
Encrypt(ctx context.Context, passphrase string, timestamp int64, plaintext string) string
Decrypt(ctx context.Context, passphrase string, timestamp int64, ciphertext string) (string, error)
ScryptPassword(ctx context.Context, salt, password string) string
CompareScryptPassword(ctx context.Context, passwordHash, salt, password string) bool
HashPassword(ctx context.Context, secretKey, password string) string
CompareHashPassword(ctx context.Context, secretKey, hashPassword, password string) bool
}
Click to show internal directories.
Click to hide internal directories.