Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(15)  |  Call(8)  |  Derive(0)  |  Import(7)

src/d/j/django-otp-yubikey-0.2.0/otp_yubikey/models.py   django-otp-yubikey(Download)
 
from django_otp.models import Device
from django_otp.util import hex_validator, random_hex
from yubiotp.client import YubiClient10, YubiClient11, YubiClient20
from yubiotp.modhex import modhex
    private_id = models.CharField(
        max_length=12,
        validators=[hex_validator(6)],
        default=lambda: random_hex(6),
        verbose_name="Private ID",
    key = models.CharField(
        max_length=32,
        validators=[hex_validator(16)],
        default=lambda: random_hex(16),
        help_text="The 16-byte AES key shared with this YubiKey (hex-encoded)."

src/d/j/django-otp-twilio-0.2.0/otp_twilio/models.py   django-otp-twilio(Download)
from django_otp.models import Device
from django_otp.oath import totp
from django_otp.util import random_hex, hex_validator
 
from .conf import settings
    key = models.CharField(
        max_length=40,
        validators=[hex_validator(20)],
        default=lambda: random_hex(20),
        help_text="A random key used to generate tokens (hex-encoded)."

src/d/j/django-otp-0.2.7/django_otp/plugins/otp_email/models.py   django-otp(Download)
from django_otp.models import Device
from django_otp.oath import totp
from django_otp.util import hex_validator, random_hex
 
from .conf import settings
    """
    key = models.CharField(max_length=80,
                           validators=[hex_validator()],
                           default=lambda: random_hex(20),
                           help_text='A hex-encoded secret key of up to 20 bytes.')

src/d/j/django-otp-0.2.7/django_otp/plugins/otp_totp/models.py   django-otp(Download)
from django_otp.models import Device
from django_otp.oath import TOTP
from django_otp.util import random_hex, hex_validator
 
 
 
    """
    key = models.CharField(max_length=80, validators=[hex_validator()], default=lambda: random_hex(20), help_text="A hex-encoded secret key of up to 40 bytes.")
    step = models.PositiveSmallIntegerField(default=30, help_text="The time step in seconds.")
    t0 = models.BigIntegerField(default=0, help_text="The Unix time at which to begin counting steps.")

src/d/j/django-otp-0.2.7/django_otp/plugins/otp_hotp/models.py   django-otp(Download)
from django_otp.models import Device
from django_otp.oath import hotp
from django_otp.util import random_hex, hex_validator
 
 
        *BigIntegerField*: The next counter value to expect. (Initial: 0)
    """
    key = models.CharField(max_length=80, validators=[hex_validator()], default=lambda: random_hex(20), help_text="A hex-encoded secret key of up to 40 bytes.")
    digits = models.PositiveSmallIntegerField(choices=[(6, 6), (8, 8)], default=6, help_text="The number of digits to expect in a token.")
    tolerance = models.PositiveSmallIntegerField(default=5, help_text="The number of missed tokens to tolerate.")

src/d/j/django-two-factor-auth-0.5.0/two_factor/models.py   django-two-factor-auth(Download)
from django_otp import Device
from django_otp.oath import totp
from django_otp.util import hex_validator, random_hex
 
from .gateways import make_call, send_sms
                              verbose_name=_('number'))
    key = models.CharField(max_length=40,
                           validators=[hex_validator()],
                           default=lambda: random_hex(20),
                           help_text="Hex-encoded secret key")

src/d/j/django-two-factor-auth-HEAD/two_factor/models.py   django-two-factor-auth(Download)
from django_otp import Device
from django_otp.oath import totp
from django_otp.util import hex_validator, random_hex
 
try:
                              verbose_name=_('number'))
    key = models.CharField(max_length=40,
                           validators=[hex_validator()],
                           default=lambda: random_hex(20),
                           help_text="Hex-encoded secret key")