diff --git a/hub/hub_service.bal b/hub/hub_service.bal index 94d1084..9b63ac5 100644 --- a/hub/hub_service.bal +++ b/hub/hub_service.bal @@ -221,7 +221,8 @@ service object { if (message.hubSecret is string) { string hubSecret = message.hubSecret; string encryptionKey = config:HUB_SECRET_ENCRYPTION_KEY; - log:printInfo("Encryption key", encryptionKey = encryptionKey); + log:printInfo("Encryption key", encryptionKey = encryptionKey); + log:printInfo("Encryption key format", encryptionKeyFormat = config:HUB_SECRET_ENCRYPTION_KEY_FORMAT); byte[] encryptionKeyInBytes = (config:HUB_SECRET_ENCRYPTION_KEY_FORMAT).equalsIgnoreCaseAscii("base64-encoded-bytes") ? (check array:fromBase64(encryptionKey)) : encryptionKey.toBytes(); log:printInfo("Encryption key in bytes", encryptionKeyInBytes = encryptionKeyInBytes); byte[16] initialVector = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];