remove pydantic from user_cipher_keys.py
This commit is contained in:
@@ -1,15 +1,14 @@
|
|||||||
import base64
|
import base64
|
||||||
import hashlib
|
import hashlib
|
||||||
|
from dataclasses import dataclass
|
||||||
import bcrypt
|
import bcrypt
|
||||||
from secrets import choice
|
from secrets import choice
|
||||||
from pydantic import BaseModel
|
|
||||||
|
|
||||||
from src.models import EncipheredNKode, KeypadSize
|
from src.models import EncipheredNKode, KeypadSize
|
||||||
from src.customer_attributes import CustomerAttributes
|
from src.customer_attributes import CustomerAttributes
|
||||||
from src.utils import generate_random_nonrepeating_list, xor_lists, int_array_to_bytes
|
from src.utils import generate_random_nonrepeating_list, xor_lists, int_array_to_bytes
|
||||||
|
|
||||||
|
@dataclass
|
||||||
class UserCipherKeys(BaseModel):
|
class UserCipherKeys:
|
||||||
alpha_key: list[int]
|
alpha_key: list[int]
|
||||||
set_key: list[int]
|
set_key: list[int]
|
||||||
pass_key: list[int]
|
pass_key: list[int]
|
||||||
|
|||||||
Reference in New Issue
Block a user