Encryption and Decryption of data using live location of device.
Location based cryptography uses location of the device in addition to pass-phrase as encryption/decryption key.
pip install locationcrypto
Create a python script, for example example.py
:
from locationcrypto import crypt
# To encrypt:
encryption = crypt.encrypt(plain_text='Harshil', key='test')
print(f'Encryption: {encryption}')
# To decrypt:
decryption = crypt.decrypt(encrypted_text=encryption, key='test')
print(f'Decryption: {decryption}')
Save and run:
❯❯❯ python3 example.py
Encryption: Jevujhk
Decryption: Harshil
Thanks to Atharv Attri for helping me publish this repository as a package.