from Crypto.Cipher import AES
def goEasyOTP(secretKey):
otp = "000" + str(int(round(time.time() * 1000)))
cipher = AES.new(secretKey, AES.MODE_ECB)
encryptedOtp = cipher.encrypt(otp)
encryptedOtp = base64.b64encode(encryptedOtp)
return encryptedOtp
secret key:86726e4356dce2d3
系统毫秒数:1490325990593
GoEasy-otp:+rOKqbTZioistsdMrhon0A==