This commit is contained in:
lancegin
2017-06-28 19:36:58 +08:00
parent ed46a8a364
commit c8853d9ae8
6 changed files with 67 additions and 0 deletions
+20
View File
@@ -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");
};
}