package
1.20240719.1
Repository: https://github.com/blend/go-sdk.git
Documentation: pkg.go.dev

# Functions

CreateIntKey creates an integer key of the specified length, return an error if it fails.
CreateKey creates a key of a given size by reading that much data off the crypto/rand reader.
CreateKeyBase64String generates a new key and returns it as a base64 std encoding string.
CreateKeyString generates a new key and returns it as a hex string.
Decrypt decrypts data with the given key.
Encrypt encrypts data with the given key.
HashPassword uses bcrypt to generate a salted hash for the provided password.
HMAC256 sha256 hashes data with the given key.
HMAC512 sha512 hashes data with the given key.
MustCreateKey creates a key, if an error is returned, it panics.
MustCreateKeyBase64String generates a new key and returns it as a base64 std encoding string.
MustCreateKeyString generates a new key and returns it as a hex string.
NewStreamDecrypter creates a new stream decrypter.
NewStreamEncrypter creates a new stream encrypter.
ParseKey parses a key from a string.
PasswordMatchesHash checks whether the provided password matches the provided hash.

# Constants

DefaultKeySize is the size of keys to generate for client use.
reasons.
IVSize is the size of the IV prefix.
YYYY + MM + DD + :.

# Structs

StreamDecrypter is a decrypter for a stream of data with authentication.
StreamEncrypter is an encrypter for a stream of data with authentication.
StreamMeta is metadata about an encrypted stream.