使用C#加密生成的串行密钥

问题描述:

I need help to encrypt the generated product key i.e in alphanumberic for my web application. please help me with your idea how to encrypt the generated code using C#



thnk u



我尝试过:



Guid g;

g = Guid.NewGuid();

Console.WriteLine(g);

Console.WriteLine(Guid.NewGuid());



用这个我生成密钥并将其保存在我的sql数据库中。

现在我需要加密生成的代码。请分享您的想法。


thnk u

What I have tried:

Guid g;
g = Guid.NewGuid();
Console.WriteLine(g);
Console.WriteLine(Guid.NewGuid());

with this i generate the key and save it in my sql database.
Now i need to encrypt the generated code. Please share your idea.

https://www.google.com/search?q=c%23+encryption [ ^ ]。


您可以使用MD5,就像我们用于在数据库中保存加密密码一样br />
using-md5-encryption-with-c-and-microsoft-sql-server / [ ^ ]
You can use MD5, like we use for saving encrypted password in database
using-md5-encryption-with-c-and-microsoft-sql-server/[^]