mirror of
https://github.com/LanceGin/jsotp.git
synced 2026-05-24 00:00:05 +08:00
backup
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* @module : OTP module to generate the password
|
||||
* @author : Gin (gin.lance.inside@hotmail.com)
|
||||
*/
|
||||
|
||||
export default class OTP {
|
||||
constructor(secret, digits=6, digest="sha1") {
|
||||
/*
|
||||
* This constructor will create OTP instance
|
||||
*/
|
||||
this.secret = secret;
|
||||
this.digits = digits;
|
||||
this.digest = digest;
|
||||
};
|
||||
|
||||
generate_otp() {
|
||||
console.log("OTP.generate_otp");
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user