Skip to content
Snippets Groups Projects
Commit 42a5f0a9 authored by Jano Hendriks's avatar Jano Hendriks
Browse files

#38 Add Ship Logic PIN encryption key

parent 82f6e2fd
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,7 @@ type EncryptionKeys struct { ...@@ -17,6 +17,7 @@ type EncryptionKeys struct {
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"` BobGoEncryptionKey string `json:"bobgo_encryption_key"`
ShipLogicPINEncryptionKey string `json:"ship_logic_pin_encryption_key"`
} }
func GetEncryptionKeys(secretID string, isDebug bool) (EncryptionKeys, error) { func GetEncryptionKeys(secretID string, isDebug bool) (EncryptionKeys, error) {
...@@ -60,3 +61,8 @@ func GetBobGoEncryptionKey(secretID string, isDebug bool) (string, error) { ...@@ -60,3 +61,8 @@ func GetBobGoEncryptionKey(secretID string, isDebug bool) (string, error) {
encryptionKeys, err := GetEncryptionKeys(secretID, isDebug) encryptionKeys, err := GetEncryptionKeys(secretID, isDebug)
return encryptionKeys.BobGoEncryptionKey, err return encryptionKeys.BobGoEncryptionKey, err
} }
func GetShipLogicPINEncryptionKey(secretID string, isDebug bool) (string, error) {
encryptionKeys, err := GetEncryptionKeys(secretID, isDebug)
return encryptionKeys.ShipLogicPINEncryptionKey, err
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment