如何使用任何标准安全算法使用csharp生成时间到期otp [英] How to generate a time expiring otp using csharp using any of the standard security algorithms

查看:107
本文介绍了如何使用任何标准安全算法使用csharp生成时间到期otp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以指导我编写一个csharp程序,它使用任何标准加密算法生成一次性密码(时间到期)吗?

我需要建议我可以使用哪种加密算法作为编程的基础。

Can anyone guide me in writing a csharp program which generate one time password (time expiring) using any of the standard cryptography algorithms??
I need suggestions on which cryptography algorithms can i use as a base for programming.

推荐答案

我建​​议你应该使用sql来创建它,使用随机函数,在sql中你可以检查你是否没有生成重复的OTP。 br />


您可以在配置文件中保存到期时间,以便在数据库中检查OTP的创建日期时间。



将尽量减少工作量。
I would suggest you should use sql to create this, use random function , in sql you can check if you are not generating duplicate OTP.

you can save the expiry time in your config file to check the expiry agains createddate time of OTP in database.

will minimize the effort.


这篇关于如何使用任何标准安全算法使用csharp生成时间到期otp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆