Dave Bell

Dave Bell

  • NA
  • 108
  • 8.4k

Encrypt in C# and Decrypt in React

Jul 29 2023 3:12 PM

Hello,

I have an application where I generate a URL with token in C# and encode it using H t t pUtility .UrlEncode(token); Now I would like to include email id as well in the URL.

I wish to encrypt email id and send it as part of URL. Then when my react app reads the URL param (useParams();) I would like to decrypt it so that react will have the actual email id.

Any suggestions on how I can do the same?

Thanks.


Answers (2)