Thursday, September 19, 2019

OTP Generate in golang

                 How to Generate  OTP in Go Language    

 
 first of open visual studio code text editor then write code below mention ..
 then run command       go run <filename>.go
 Enter command OTP is print .
 Thank you..

package main
import (
    "fmt" 
)
func main() {
    func main() {
         fmt.Println(gotp.NewDefaultTOTP("4S62BZNFXXSZLCRO").Now())
    }
}

No comments:

Post a Comment