Skip to content
Snippets Groups Projects
Commit cc2b49e1 authored by Francé Wilke's avatar Francé Wilke
Browse files

Merge branch '37-create-bob-go-encryption-key-function' into 'main'

Resolve "Create Bob Go encryption key function"

See merge request !41
parents 9f3f4ed9 2b6c07ae
No related branches found
No related tags found
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