Spaces:
Sleeping
Sleeping
Download src/base.py from marlonsousa/QuantumCrypt: direct link, hf CLI and curl.
- Browser
- Download file 654 Bytes
-
https://huggingface.co/spaces/marlonsousa/QuantumCrypt/resolve/main/src/base.py
- Command line
-
hf download hf://spaces/marlonsousa/QuantumCrypt/src/base.py
-
curl -L -o base.py https://huggingface.co/spaces/marlonsousa/QuantumCrypt/resolve/main/src/base.py
654 Bytes
| from abc import ABC, abstractmethod | |
| from typing import Dict, List, Tuple, Optional | |
| import logging | |
| class QuantumProtocol(ABC): | |
| """Classe base abstrata para protocolos de criptografia quântica.""" | |
| def __init__(self, key_length: int = 128): | |
| self.key_length = key_length | |
| self.logger = logging.getLogger(self.__class__.__name__) | |
| def generate_key(self) -> Dict[str, List[int]]: | |
| """Gera uma chave usando o protocolo específico.""" | |
| pass | |
| def get_circuit_visualization(self) -> str: | |
| """Retorna a visualização do circuito quântico.""" | |
| pass | |