Skip to content
Snippets Groups Projects

Resolve "Create Bob Go encryption key function"

Merged Christel Loftus requested to merge 37-create-bob-go-encryption-key-function into main
1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
+ 6
0
@@ -16,6 +16,7 @@ type EncryptionKeys struct {
JWTEncryptionKey string `json:"jwt_encryption_key"`
BobAPIAuthEncryptionKey string `json:"bob_api_auth_encryption_key"`
GenericEncryptionKey string `json:"generic_encryption_key"`
BobGoEncryptionKey string `json:"bobgo_encryption_key"`
}
func GetEncryptionKeys(secretID string, isDebug bool) (EncryptionKeys, error) {
@@ -54,3 +55,8 @@ func GetGenericEncryptionKey(secretID string, isDebug bool) (string, error) {
encryptionKeys, err := GetEncryptionKeys(secretID, isDebug)
return encryptionKeys.GenericEncryptionKey, err
}
func GetBobGoEncryptionKey(secretID string, isDebug bool) (string, error) {
encryptionKeys, err := GetEncryptionKeys(secretID, isDebug)
return encryptionKeys.BobGoEncryptionKey, err
}
Loading