From 9345eee9c67461875869ecb150a17b6153e85db7 Mon Sep 17 00:00:00 2001 From: BukiOffor Date: Mon, 25 Mar 2024 11:06:21 +0100 Subject: [PATCH] removed keys --- .gitignore | 3 ++- core/keys/main.py | 43 ------------------------------------------- core/keys/private.pem | 27 --------------------------- core/keys/public.pem | 8 -------- 4 files changed, 2 insertions(+), 79 deletions(-) delete mode 100644 core/keys/main.py delete mode 100644 core/keys/private.pem delete mode 100644 core/keys/public.pem diff --git a/.gitignore b/.gitignore index fac441b..dec6a8e 100644 --- a/.gitignore +++ b/.gitignore @@ -70,4 +70,5 @@ docs/_build/ # Pyenv .python-version -*/target \ No newline at end of file +*/target +core \ No newline at end of file diff --git a/core/keys/main.py b/core/keys/main.py deleted file mode 100644 index d002df1..0000000 --- a/core/keys/main.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -import rsa, os - -def main(): - pass - - -def load_priv_key(path): - """Load the private key.""" - try: - with open(path, mode='rb') as privatefile: - keydata = privatefile.read() - privkey = rsa.PrivateKey.load_pkcs1(keydata) - return privkey - except FileNotFoundError as e: - print(e) - return None - -def load_pub_key(path): - current_directory = os.getcwd() - print("Current working directory:", current_directory) - """Load the private key.""" - try: - with open(path, mode='rb') as privatefile: - keydata = privatefile.read() - privkey = rsa.PublicKey.load_pkcs1(keydata) - return privkey - except FileNotFoundError as e: - print(e) - return None - - -if __name__ == '__main__': - # Load the public and private keys. - main() - -# pubkey = load_pub_key() -# privkey = load_priv_key() - -# crypto = b"\x0e\xe4\xd8\x8a\x1b\x8e?0\x9a\xdf\xbc\x15h\x8aT\xaeN\x9a~v?\xc3\xc0D?\xc1\x8f\x83\xcfD\xf8j\x16\xa0\x0e\x8a\xeb\x19\x9d4O\xb0\x84\xa6B\tS}\\&C\xad\xbb\x9b\xd6U\x8bR\xad\x17\xde\x84\xbdU\xa8D\xc7\x85\x12\x93G=\xfb\x02\xb0|jI\xd1Z5\r\xe2\x8c\xf4\x8dN\x8c\x9e\xecF\xbft\x92{wKA\x10%p\xe27\x14\x9f\xca\xd3=\xed\xa2.'\xcc\xc0?\xca\xc3\x13XOn\xd9\xe6\x02\x12\xc0\xdf\xd8" - -# message = rsa.decrypt(crypto, privkey) -# print(message.decode('utf8')) \ No newline at end of file diff --git a/core/keys/private.pem b/core/keys/private.pem deleted file mode 100644 index dab5d4e..0000000 --- a/core/keys/private.pem +++ /dev/null @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEqgIBAAKCAQEAlb4U2RSMSlrbQ7KTuGmXdW6rgpHjc4xZoox57bBMkWTZUoEa -2lDmLResBdf/SbDECKS7qvyqTYRc/fIMfficL6RqaFKNj3HjKyc+AgEWJPeKY0E8 -660+im7v2Zgy+y28BTu2fVTmllHoE1JYF0xrVaxHwn7aEAlrf+1BwEpovt0jPaRF -oldGjB5r7r7hCvNHz6pFMi/DXwlQx/kt0cgAUt/nJYYGQkRYbsczD0fNtyjfJczi -rbMYQI7yvOVNeqQZtU/KgJt+2XVWVEfUxDvfQdDECnph4PYwIQH0W/GgZQWDVgAe -NWpg67AdQWnS34181vlgCtl8rhyfVk6tDYbo/wIDAQABAoIBAH3H/ychlX5Xt1q0 -RFVhjPH9ll/FP/OtbxWVPk4kCw0OU2Z0QCQmVFKIUd1OxIgXzXMdPO6x8jPO/XXq -vgeKr1dtmlwrC/H0TkfPXMy+MOW4cSxSfmPRUHlkGmEC8b//eLJEqFO63z5harng -L1LSxE5gup5rg6x43FlRC5+xE0qn4zXZODf/nhQnrKnkmYXaMArEXVJ+56UN78v5 -sUvVCt0sxfsLJJNceZ148Cpjw8T28u+O7RVz5kE0DSbrGZBNh3nRt6Vh4O3InhFp -Ass4wZZb8deGFI7nOm0/gMXSubkHCQXViSuXCPuYjjMFUa/RODVSCQ4VYeOkmUBX -qrTHrnECgYkA/O4eD6i2iY5vsXhFOCDgM672UjWi9xeWELDf7j52jP5ScGT9QPSl -Dqn+rbD5eTWYpcUU2tYkI/yWv7e6t8Xpx/B1UTH9LQoZktsB9y/Fc9b9Rk1sfb1c -8NNPNN0t//GCzlJJ8EiziFww9E5WHKjs0MSLrnU/G2Rp86JEe94NKMGaDh/baukN -vQJ5AJePWSzOYlaaS242DSbHMGse9bhOthd4m+OtACygYlYlRiLurCS8cUczBga8 -tDaCVHKPteZVsOPbn5J0cdPJnmttdccMWymLQiX/NjX5ecg+n+aAjV4hszR359gf -nEZnSTPJ/mFFPFbLq6pf3wMZd3eplSaS2pYHawKBiQDLIBBUUxIFdraMuCIe6Ygk -+aYob5rpBbAmx2WPV+qtYLGkQfaBa/gCxtMZer9fcIOe3Z/Z/5AWtov6e/sgC3ms -cJhHFPZWbX4MSoZRlbPlTAsropI2iRVS8uDxe4+ttK9wMvXeWwSTxjYqfZ76dU96 -ed4TxWVhAkt0tiR5teKrkI/AOCVmvrOhAnhDXQKMyLqqtW+7b6jOyI/7vMoIfmuu -6PuY6Yb/TtYGZhDTa/P1bBCJTeNq0SrkY283cCqwUvwJes9lH/6L3LxeEUvdCd/n -Ci9/hfzJZrY7S6J0qEStRxtIwda5l+s026mMrEY1Y7ma9nG5i10rGoGgHS7e8zzW -nDsCgYkAoFO1he4062AwyRVAIceaEMyTIz78YV3i5oTkBhTwIVjDuB/oUv9jRa/u -388ZguR0Bf+QXzZA8QxR0oACicNFf05/7h72pm1V7HFxR8NS7wZbmj55Vj0gCcpq -1HkhUmMKTalZzfKLi34nwPMB+AFaUgDUp6MUdro5oXN5xE+p6P/HafbAdW3lUQ== ------END RSA PRIVATE KEY----- diff --git a/core/keys/public.pem b/core/keys/public.pem deleted file mode 100644 index cac7e42..0000000 --- a/core/keys/public.pem +++ /dev/null @@ -1,8 +0,0 @@ ------BEGIN RSA PUBLIC KEY----- -MIIBCgKCAQEAlb4U2RSMSlrbQ7KTuGmXdW6rgpHjc4xZoox57bBMkWTZUoEa2lDm -LResBdf/SbDECKS7qvyqTYRc/fIMfficL6RqaFKNj3HjKyc+AgEWJPeKY0E8660+ -im7v2Zgy+y28BTu2fVTmllHoE1JYF0xrVaxHwn7aEAlrf+1BwEpovt0jPaRFoldG -jB5r7r7hCvNHz6pFMi/DXwlQx/kt0cgAUt/nJYYGQkRYbsczD0fNtyjfJczirbMY -QI7yvOVNeqQZtU/KgJt+2XVWVEfUxDvfQdDECnph4PYwIQH0W/GgZQWDVgAeNWpg -67AdQWnS34181vlgCtl8rhyfVk6tDYbo/wIDAQAB ------END RSA PUBLIC KEY-----