How to encrypt json object using aes256 with cbc and pkcs5 padding.
i did with base64 i dont have idea about aes256 pls help me
Thanks in Advance
How to encrypt json object using aes256 with cbc and pkcs5 padding.
i did with base64 i dont have idea about aes256 pls help me
Thanks in Advance
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit MohantyPosted Apr 4, 2023, 5:47 AM
Hey Jaya Prakash, can you please provide sample of your json data ?
Jaya PrakashPosted Apr 4, 2023, 5:26 AM
@Amit Not Working sir,
throwing exception the input data is not a complete block.
Amit MohantyPosted Apr 4, 2023, 4:28 AM
Try this
Jaya PrakashPosted Apr 4, 2023, 3:57 AM
@Rajkiran Swain sir,
Pls provide code also for Decryption thank you.
Rajkiran SwainPosted Apr 3, 2023, 12:21 PM
Sure, I can help you with that. Here's an example code snippet in C# that uses the built-in System.Security.Cryptography library to encrypt a JSON object using AES-256 with CBC mode and PKCS5 padding in ASP.NET: