
com.magictools.crypto.digest.otp.package-info Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of magic-tools-all Show documentation
Show all versions of magic-tools-all Show documentation
magic-tools 是一个小而全的Java工具类库,通过静态方法封装,降低相关API的学习成本,提高工作效率,使Java拥有函数式语言般的优雅,让Java语言也可以“甜甜的”。
The newest version!
/**
* OTP 是 One-Time Password的简写,表示一次性密码。
*
* 计算OTP串的公式:
*
* OTP(K,C) = Truncate(HMAC-SHA-1(K,C))
* K:表示秘钥串
* C:是一个数字,表示随机数
* Truncate:是一个函数,就是怎么截取加密后的串,并取加密后串的哪些字段组成一个数字。
*
*
* @author looly
*/
package com.magictools.crypto.digest.otp;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy