Versions in this module Expand all Collapse all v0 v0.0.2 Jun 10, 2024 v0.0.1 Jun 10, 2024 Changes in this version + type Interface interface + CompareHashPassword func(ctx context.Context, secretKey, hashPassword, password string) bool + CompareScryptPassword func(ctx context.Context, passwordHash, salt, password string) bool + Decrypt func(ctx context.Context, passphrase string, timestamp int64, ciphertext string) (string, error) + Encrypt func(ctx context.Context, passphrase string, timestamp int64, plaintext string) string + HashPassword func(ctx context.Context, secretKey, password string) string + ScryptPassword func(ctx context.Context, salt, password string) string + func Init(log logger.Interface, scrypt ScryptConfig) Interface + type ScryptConfig struct + Base64SaltSeperator string + Base64SignerKey string + MemoryCost int + Rounds int