Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptServicePassword ¶
DecryptServicePassword
Decrypts the service password using AES256-GCM with the passed encryption key Args - cipherText (string) - base64 encoded encrypted payload - key ([]byte) - encryption key Returns string - decrypted string
func EncryptServicePassword ¶
EncryptServicePassword
Encrypts the service password using AES256-GCM with the passed encryption key Args password (string) - string to be encrypted key ([]byte) - encryption key Returns string - base64 encoded encrypted string
func GenerateServicePassword ¶
GenerateServicePassword
Generates a 128 byte random secret using crypto/rand and returns a base64 encoded string Returns string - base64 encoded secret
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.