Versions in this module Expand all Collapse all v2 v2.0.2 Sep 18, 2018 Changes in this version + var ErrInvalidSalt = errors.New("Salt needs to have exactly 8 byte") + func DigestMD5Sum(data []byte) []byte + func DigestSHA1Sum(data []byte) []byte + func DigestSHA256Sum(data []byte) []byte + type DigestFunc func([]byte) []byte + type OpenSSL struct + func New() *OpenSSL + func (o OpenSSL) DecryptBytes(passphrase string, encryptedBase64Data []byte) ([]byte, error) + func (o OpenSSL) DecryptString(passphrase, encryptedBase64String string) ([]byte, error) + func (o OpenSSL) EncryptBytes(passphrase string, plainData []byte) ([]byte, error) + func (o OpenSSL) EncryptBytesWithSalt(passphrase string, salt, plainData []byte) ([]byte, error) + func (o OpenSSL) EncryptBytesWithSaltAndDigestFunc(passphrase string, salt, plainData []byte, hashFunc DigestFunc) ([]byte, error) + func (o OpenSSL) EncryptString(passphrase, plaintextString string) ([]byte, error) + func (o OpenSSL) EncryptStringWithSalt(passphrase string, salt []byte, plaintextString string) ([]byte, error) + func (o OpenSSL) GenerateSalt() ([]byte, error) Other modules containing this package github.com/Luzifer/go-openssl github.com/Luzifer/go-openssl/v3 github.com/Luzifer/go-openssl/v4