package
0.0.0-20211122204940-3aa76b92aec7
Repository: https://github.com/czarsimon/httputil.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
DefaultScryptHasher creates scrypt hasher with the default key parameters.
GenerateAESKey generates a random AES-256 key.
Hmac computes a hmac using SHA-256.
NewAESCipher creates a new AES-GCM cipher with the given key.
NewArgon2Hasher creates a new Argon2id hasher.
NewCipher creates a new cipher using the default implementation.
NewScryptHasher creates a new scrypt hasher.
RandomBytes generates an array of n random bytes.

# Constants

AES256KeySize key size for AES-256.

# Variables

Common errors.
Common errors.
Common encryption / decryption errors.

# Structs

AESCipher symetric cipher implementation using AES-GCM.
Argon2Hasher hasher implementation using the Argon2id key derivation function.
ScryptHasher hasher implementation using the SCRYPT key derivation function.
Sha256Hasher hasher implementation using sha256 as a hash function.

# Interfaces

Cipher symetric chipher interface.
Hasher interface for hashing and verifying hased values.