Click or drag to resize

MakeSecretKey 메서드

보안키를 생성합니다.

형식
syntax
secretKey = objOtp.MakeSecretKey

objOtp

Required. GoogleOTP 오브젝트

secretKey

String. 생성한 보안키를 반환합니다.

설명

보안 난수(Random Number) 발생기를 기반으로 TOTP 보안키를 생성합니다. MakeSecretKey 메서드를 호출할 때마다 새로운 보안키가 생성됩니다.

예제
ASP
Set Encryptor = Server.CreateObject("TABS.GoogleOTP")

issuer = "탭스랩"
account = "guest"
otp.MakeSecretKey
authUri = otp.GetTOTPAuthURI(issuer, account)