- Phil Roth
- PowerBuilder
- Friday, 2 August 2019 09:35 AM UTC
Hi, Is there an option to use RSA Asymmetric encryption with a 2048 key using
OAEP padding, as we want to generate an encrypted value of 256 chars, and using PB2017 R3 it is only generating 128 chars?
e.g
lblb_data = Blob(a_sPassword, EncodingANSI!)
// Generate the private key
lnv_CrypterObject.AsymmetricGenerateKey(RSA!, 2048, i_lblb_privKey, i_lblb_pubKey)
// Encrypt data using RSA
lblb_encrypt = lnv_CrypterObject.AsymmetricEncrypt(RSA!, lblb_data, i_lblb_pubKey)
Length of lblb_encrypt is 128, and our security requirements are for 256 chars
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.