Skip to content
Snippets Groups Projects
Commit d55098dd authored by Johan de Klerk's avatar Johan de Klerk
Browse files

Added generic encryption key

parent 1781754a
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@ 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(secretID string, isDebug bool) (EncryptionKeys, error) {
......@@ -48,3 +49,8 @@ func GetBobAPIAuthEncryptionKey(secretID string, isDebug bool) (string, error) {
encryptionKeys, err := GetEncryptionKeys(secretID, isDebug)
return encryptionKeys.BobAPIAuthEncryptionKey, err
}
func GetGenericEncryptionKey(secretID string, isDebug bool) (string, error) {
encryptionKeys, err := GetEncryptionKeys(secretID, isDebug)
return encryptionKeys.GenericEncryptionKey, err
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment