Hi All,
I’ve been working on this program (rpgle #2) on password encryption using APIs. The result of encrypted password (with base64 encoded) is done, however when I call another program (rpg#3) to pass the encrypted password, the return code from web service is 404. To test if rpg #3 is working, i hard coded the encrypted password provided by the client and it works. Below is the code of my password encryption (rpg #2). And i really cannot find what’s wrong with this code. Please help.
Requirement: AES/CBC/NoPadding algo requies a password with multiple of 16 chars. If the password consists of less than 16, pad or add spaces to the right until the number of chars and spaces amount to 32.
I’ve been working on this program (rpgle #2) on password encryption using APIs. The result of encrypted password (with base64 encoded) is done, however when I call another program (rpg#3) to pass the encrypted password, the return code from web service is 404. To test if rpg #3 is working, i hard coded the encrypted password provided by the client and it works. Below is the code of my password encryption (rpg #2). And i really cannot find what’s wrong with this code. Please help.
Requirement: AES/CBC/NoPadding algo requies a password with multiple of 16 chars. If the password consists of less than 16, pad or add spaces to the right until the number of chars and spaces amount to 32.
Comment