Documentation ¶
Index ¶
- func Decrypt(ciphertext string, key string) (string, error)
- func DecryptByteArray(encryptedByteArray []byte, key string, object any) error
- func DecryptStruct(encryptedStruct string, key string, object any) error
- func Encrypt(plaintext string, key string) (string, error)
- func EncryptByteArray(byteArray []byte, key string) (string, error)
- func EncryptStruct(object any, key string) (string, error)
- func GenerateHashFromObject(object any, secret string) (string, error)
- func GetBobAPIAuthEncryptionKey(secretID string, isDebug bool) (string, error)
- func GetFirebaseCredentialsEncryptionKey(secretID string, isDebug bool) (string, error)
- func GetGenericEncryptionKey(secretID string, isDebug bool) (string, error)
- func GetJWTEncryptionKey(secretID string, isDebug bool) (string, error)
- func Hash(input string, key string) string
- func Md5HashString(bytesToHash []byte) string
- type EncryptionKeys
- type EncryptionKeysSecret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptByteArray ¶ added in v1.122.0
func DecryptStruct ¶ added in v1.70.0
func EncryptByteArray ¶ added in v1.122.0
func GenerateHashFromObject ¶ added in v1.109.0
GenerateHashFromObject using HMAC with SHA-256
func GetBobAPIAuthEncryptionKey ¶ added in v1.116.0
func GetFirebaseCredentialsEncryptionKey ¶ added in v1.97.0
func GetGenericEncryptionKey ¶ added in v1.118.0
func GetJWTEncryptionKey ¶ added in v1.97.0
func Md5HashString ¶
Types ¶
type EncryptionKeys ¶ added in v1.97.0
type EncryptionKeys struct { FirebaseEncryptionKey string `json:"firebase_encryption_key"` JWTEncryptionKey string `json:"jwt_encryption_key"` BobAPIAuthEncryptionKey string `json:"bob_api_auth_encryption_key"` GenericEncryptionKey string `json:"generic_encryption_key"` }
func GetEncryptionKeys ¶ added in v1.97.0
func GetEncryptionKeys(secretID string, isDebug bool) (EncryptionKeys, error)
type EncryptionKeysSecret ¶ added in v1.97.0
type EncryptionKeysSecret struct {
EncryptionKeysValue string `json:"EncryptionKeys"`
}
Click to show internal directories.
Click to hide internal directories.