Skip to main content
June 14, 2024
Question

Problem using AES Encrypt

  • June 14, 2024
  • 8 replies
  • 0 views

Good afternoon,

I am having a problem when using the plugin, both for encrypttext and decrypttext.

I am trying to access via SCS and I always get the error "Error encrypting value: This plug-in [com.unionbankph.plugins.aesencrypt] is not registered to access secured values ​​for the given external system key [Key]. Check the external systems plug -ins list in the Administration Console." even though the plugin is correctly in the credential's plugin list. I am currently using them in the following way

local!base64Key: decodebase64string("pruebaencript"),
local!eas: fn!encrypttext(
valueToEncrypt: local!valor,
scsKey: "pruebaencript",
scsField:"Key",
iv: local!base64Key
),

Thank you so much

8 replies

June 14, 2024

Please find the sample code below. Both working for me.

encrypttext(
  valueToEncrypt: "testing string",
  iv: "VGhpcyBpcyBmb3IgdGVzdA==",
  scsKey: "demo",
  scsField: "key"
)

encrypttext(
  valueToEncrypt: "testing string",
  iv: "VGhpcyBpcyBmb3IgdGVzdA==",
  scsKey: "demo",
  scsField: "key",
  cipher: "AES",
  encoding: "BASE64"
)

Hope this helps.

March 6, 2025

Hi, I want to know which algorithm is this plugin using in the background? 

stefanhelzle0001
March 6, 2025
[quote userid="63239" url="~/discussions/f/plug-ins/35238/problem-using-aes-encrypt"] is not registered to access secured values ​​for the given external system key [Key][/quote]

Well, that's a pretty clear error message ... I suggest to recheck this.

March 6, 2025

Hi Stefan, do you know which encryption/decryption algorithm this plugin uses ? The primary types of AES encryption algorithms are AES-128, AES-192, and AES-256; out of which which one this plugin might be using to encrypt and decrypt

stefanhelzle0001
March 6, 2025