/kappacrypt

Offline file crypting utility using RSA + AES. Implements OPKP

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

kappacrypt

Offline file crypting utility using RSA + AES for Python. It allows offline encrypting files (like ransomware does). It means that you don't have to store decryption key while encrypting (some ransomware uses that mechanism). You can look for more details here

installation

python setup.py install

usage

from kappacrypt import FileCryptor
from kappacrypt.keys import RSAKeys
# encryption
fc = FileCryptor("example.mp4")
rsa = RSAKeys()
rsa.gen_keys()
rsa.dump() # keys will be dumped to current directory
fc.encrypt(rsa.public_key)
    
# decryption
fc = FileCryptor("example.mp4.encrypted")
rsa = RSAKeys()
rsa.load(
    {"private_key": "path to rsa private key"}
)
fc.decrypt(rsa.private_key)

#You can also dump keys to specifed directory by using
rsa.dump({"private_key": "path to rsa private key",
          "public_key": "path to rsa public key"})