You need to sign in to do that
Don't have an account?
Yingyong Taechayingyongchai
How to using javascript encrypt ASE mode cbc and padding with pkcs7?
I want to encrypt the message with ASE mode CBC and padding with pkcs7 algorithm.
Normally, Apex didn't support pkcs7. Then I using the javascript by lightning component. I already download source from "https://www.npmjs.com/package/pkijs", and using ltng:require tag for include the script.
But it didn't work, Please give me some advise.
Normally, Apex didn't support pkcs7. Then I using the javascript by lightning component. I already download source from "https://www.npmjs.com/package/pkijs", and using ltng:require tag for include the script.
But it didn't work, Please give me some advise.
There is no salesforce official documentation on your ask. The below articles give a good insight into encryption:
https://blog.enree.co/2019/05/salesforce-handle-encryption-and-decryption-with-apex-crypto-class-and-crypojs.html
https://stackoverflow.com/questions/55795767/how-encrypt-with-aes-cbc-zero-padding-in-javascript-and-decrypt-with-java
https://salesforce.stackexchange.com/questions/2288/sample-java-class-to-decrypt-aes128-encryption
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you