Spaces:
Running
Running
File size: 228 Bytes
01c6926 | 1 2 3 4 5 6 7 8 9 10 11 12 | from abc import ABC, abstractmethod
class PasswordService(ABC):
@abstractmethod
def hash(self, password: str) -> str:
...
@abstractmethod
def verify(self, plain: str, hashed: str) -> bool:
...
|