Documentation
¶
Index ¶
- Variables
- func Decrypt(encString *encryptedstring.EncryptedString, key *symmetrickey.Key) ([]byte, error)
- func DecryptEncryptionKey(encryptedKeyStr string, key symmetrickey.Key) (*symmetrickey.Key, error)
- func DecryptPrivateKey(encryptedPrivateKeyStr string, encryptionKey symmetrickey.Key) (*rsa.PrivateKey, error)
- func Encrypt(plainValue []byte, key symmetrickey.Key) (*encryptedstring.EncryptedString, error)
- func EncryptAsString(plainValue []byte, key symmetrickey.Key) (string, error)
- func HashPassword(password string, key symmetrickey.Key, localAuthorization bool) string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SafeMode = true
)
Functions ¶
func Decrypt ¶
func Decrypt(encString *encryptedstring.EncryptedString, key *symmetrickey.Key) ([]byte, error)
func DecryptEncryptionKey ¶
func DecryptEncryptionKey(encryptedKeyStr string, key symmetrickey.Key) (*symmetrickey.Key, error)
func DecryptPrivateKey ¶
func DecryptPrivateKey(encryptedPrivateKeyStr string, encryptionKey symmetrickey.Key) (*rsa.PrivateKey, error)
func Encrypt ¶
func Encrypt(plainValue []byte, key symmetrickey.Key) (*encryptedstring.EncryptedString, error)
func EncryptAsString ¶
func EncryptAsString(plainValue []byte, key symmetrickey.Key) (string, error)
func HashPassword ¶
func HashPassword(password string, key symmetrickey.Key, localAuthorization bool) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.