Documentation
¶
Index ¶
- func Decrypt(formattedCipherText, key, keyId string) (string, error)
- func Encrypt(text, key, keyId string) (string, error)
- func GenerateKeyId(key string) (string, error)
- func GenerateRandomKeyString(keySize int) (string, error)
- func IsTextEncrypted(formattedCipherText, key, keyId string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encrypt ¶
format encrypted text , keyId is first 6 chars of hashed(sha256) signing key {{key-id}}${{algo}}${{encrypted-value}} example: e67gef$aes256$adsad321424324fdsdfs3Rddi90oP34xV
func GenerateKeyId ¶
keyId is first 6 chars of hashed(sha256) signing key
func GenerateRandomKeyString ¶
func IsTextEncrypted ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.