示例#1
0
 def get_provisioning_uri(self, account_name, issuer):
     return _generate_uri(
         self._hotp,
         "totp",
         account_name,
         issuer,
         [("period", int(self._time_step))],
     )
示例#2
0
 def get_provisioning_uri(self, account_name: str,
                          issuer: typing.Optional[str]) -> str:
     return _generate_uri(
         self._hotp,
         "totp",
         account_name,
         issuer,
         [("period", int(self._time_step))],
     )
示例#3
0
 def get_provisioning_uri(self, account_name, counter, issuer):
     return _generate_uri(self, "hotp", account_name, issuer, [
         ("counter", int(counter)),
     ])
示例#4
0
 def get_provisioning_uri(self, account_name, issuer):
     return _generate_uri(self._hotp, 'totp', account_name, issuer, [
         ('period', int(self._time_step)),
     ])
示例#5
0
 def get_provisioning_uri(self, account_name, counter, issuer):
     return _generate_uri(self, "hotp", account_name, issuer, [
         ("counter", int(counter)),
     ])
示例#6
0
文件: totp.py 项目: 06094051/XX-Net
 def get_provisioning_uri(self, account_name, issuer):
     return _generate_uri(self._hotp, "totp", account_name, issuer, [
         ("period", int(self._time_step)),
     ])
示例#7
0
 def get_provisioning_uri(self, account_name: str, counter: int,
                          issuer: typing.Optional[str]):
     return _generate_uri(self, "hotp", account_name, issuer,
                          [("counter", int(counter))])
示例#8
0
 def get_provisioning_uri(self, account_name, counter, issuer):
     return _generate_uri(self, 'hotp', account_name, issuer, [
         ('counter', int(counter)),
     ])