且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何编码自动生成密码程序并将生成的密码发送到新加入的用户的电子邮件ID?

更新时间:2023-10-02 08:58:28

Internet上有很多建议生成密码.只需使用一种生成随机数的方法,然后使用这些值从一组字符中选择字符即可创建初始密码.至于发送给用户,您可以使用 SmtpClient [^ ] class.
There are plenty of suggestions on the internet for generating passwords. Just use one of the methods for generating random numbers, and use the values to select characters from a set to make an initial password. As for sending this to the user, you can use the SmtpClient[^] class.


在Google上搜索以下内容:
Search for this on Google :
"generating random passwords C#"

,然后用双手和所有手指抓住前10个结果.有很多方法可以完成此操作,对于电子邮件发送,可以在Google上以完全相同的方式搜索电子邮件C#",然后将自己投入前10个结果左右.

and just grab the first 10 results with both hands and all fingers. There are a ton of ways to do that and as for e-mailing, search for "e-mail C#" in exactly the same way on Google and throw yourself on the first 10 results or so.