Skip to content
Snippets Groups Projects
Commit 2b6c07ae authored by Christel Loftus's avatar Christel Loftus
Browse files

#37 - bobGoEncryptionKey

parent 9f3f4ed9
Branches
Tags
1 merge request!41Resolve "Create Bob Go encryption key function"
...@@ -16,6 +16,7 @@ type EncryptionKeys struct { ...@@ -16,6 +16,7 @@ type EncryptionKeys struct {
JWTEncryptionKey string `json:"jwt_encryption_key"` JWTEncryptionKey string `json:"jwt_encryption_key"`
BobAPIAuthEncryptionKey string `json:"bob_api_auth_encryption_key"` BobAPIAuthEncryptionKey string `json:"bob_api_auth_encryption_key"`
GenericEncryptionKey string `json:"generic_encryption_key"` GenericEncryptionKey string `json:"generic_encryption_key"`
BobGoEncryptionKey string `json:"bobgo_encryption_key"`
} }
func GetEncryptionKeys(secretID string, isDebug bool) (EncryptionKeys, error) { func GetEncryptionKeys(secretID string, isDebug bool) (EncryptionKeys, error) {
...@@ -54,3 +55,8 @@ func GetGenericEncryptionKey(secretID string, isDebug bool) (string, error) { ...@@ -54,3 +55,8 @@ func GetGenericEncryptionKey(secretID string, isDebug bool) (string, error) {
encryptionKeys, err := GetEncryptionKeys(secretID, isDebug) encryptionKeys, err := GetEncryptionKeys(secretID, isDebug)
return encryptionKeys.GenericEncryptionKey, err return encryptionKeys.GenericEncryptionKey, err
} }
func GetBobGoEncryptionKey(secretID string, isDebug bool) (string, error) {
encryptionKeys, err := GetEncryptionKeys(secretID, isDebug)
return encryptionKeys.BobGoEncryptionKey, err
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment