Hello everyone I have used protect method in c# (for encrypting value) so now how to decrypt this value in the javascript side. it's possible or not.
Protect Method in c#.
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Uttam KumarRank #1,076 · 1.8K reputationPosted Apr 15, 2022, 11:20 AM EDT
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Apr 15, 2022, 11:28 PM EDT
Anoop Kumar SharmaRank #127 · 17.4K reputationPosted Apr 16, 2022, 1:49 AM EDT
RohanRank #1,548 · 1K reputationPosted Apr 18, 2022, 2:23 AM EDT
Anoop Kumar Sharma - I have called a web API through the HTTP client in c# code and set the value in session and I have set this value in a hidden field with encrypt. Now I have gotten this session value in the javascript file (Here is how to decrypt this value).