summaryrefslogtreecommitdiff
path: root/django/srpproject/srp/models.py
blob: ce30c950efd95416d9b1c5c0207ea5c3338ccd48 (plain)
1
2
3
4
5
6
7
8
9
10
11
from django.db import models
from django.contrib.auth.models import User
# Create your models here.

class SRPUser(User):
    salt = models.CharField(max_length=16)
    verifier = models.CharField(max_length=65, null=True)

    def check_password(self, M):
        return M[0] == M[1]