mirror of
https://cdm-project.com/Decryption-Tools/TPD-Keys.git
synced 2025-04-30 00:34:24 +02:00
14 lines
374 B
Python
14 lines
374 B
Python
# Import dependencies
|
|
|
|
import sqlite3
|
|
import os
|
|
from sys import exit
|
|
|
|
|
|
# Define cache function
|
|
def cache_keys(pssh: str, keys: str):
|
|
dbconnection = sqlite3.connect(f"{os.getcwd()}/keys/database.db")
|
|
dbcursor = dbconnection.cursor()
|
|
dbcursor.execute("INSERT or REPLACE INTO database VALUES (?, ?)", (pssh, keys))
|
|
dbconnection.commit()
|
|
dbconnection.close() |