harshildarji / locationcrypto

Encryption and Decryption of data using live location of device.

Home Page:https://pypi.org/project/locationcrypto/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Location-based Cryptography

Package published at: PyPI

Downloads


Location based cryptography uses location of the device in addition to pass-phrase as encryption/decryption key.

Install:

pip install locationcrypto

Use:

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.

About

Encryption and Decryption of data using live location of device.

https://pypi.org/project/locationcrypto/

License:MIT License


Languages

Language:Python 100.0%