Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Encode and Decode a string in c#

Tags:

c#

encryption

Hii, I had a requirement of encode a string provided to a unreadable format and also have to decode after certain action performed. I have tried 'Base64' encoding. But this is not a secure way. I need some other solutions. Give some help regarding the above context.

like image 696
Jibu P C_Adoor Avatar asked May 10 '26 05:05

Jibu P C_Adoor


1 Answers

You could use a symmetric encryption algorithm. Here's an example. Both sides (encrypt/decrypt) must share a common secret key for this to work.

like image 142
Darin Dimitrov Avatar answered May 12 '26 20:05

Darin Dimitrov