This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class KeyManager: | |
| def __init__(self, db_name="demo_polynomial.db"): | |
| self.db_name = db_name | |
| self._create_tables() | |
| self.crypto_string = None | |
| self.crypto_csv = None | |
| self._initialize_demo_data() | |
| def _get_connection(self): | |
| return sqlite3.connect(self.db_name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sqlite3 | |
| import random | |
| import os | |
| import base64 | |
| import uuid | |
| from typing import Tuple | |
| from fastapi import FastAPI, HTTPException | |
| from pydantic import BaseModel | |
| import io | |
| from cryptography.hazmat.primitives import hashes |
OlderNewer