https://github.com/harshildarji/locationcrypto
Encryption and Decryption of data using live location of device.
https://github.com/harshildarji/locationcrypto
cryptography decryption encryption location position
Last synced: 5 months ago
JSON representation
Encryption and Decryption of data using live location of device.
- Host: GitHub
- URL: https://github.com/harshildarji/locationcrypto
- Owner: harshildarji
- License: mit
- Created: 2018-01-11T10:15:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-02-17T06:04:56.000Z (over 5 years ago)
- Last Synced: 2025-09-28T11:39:59.252Z (9 months ago)
- Topics: cryptography, decryption, encryption, location, position
- Language: Python
- Homepage: https://pypi.org/project/locationcrypto/
- Size: 32.2 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Location-based Cryptography
#### Package published at: [PyPI](https://pypi.org/project/locationcrypto/)
[](https://pepy.tech/project/locationcrypto)
---
Location based cryptography uses location of the device in addition to pass-phrase as encryption/decryption key.
#### Install:
```bash
pip install locationcrypto
```
#### Use:
Create a python script, for example **`example.py`**:
```python
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:
```bash
❯❯❯ python3 example.py
Encryption: Jevujhk
Decryption: Harshil
```
---
#### Author: [Harshil Darji](https://github.com/harshildarji)
Thanks to [Atharv Attri](https://github.com/Atharv-Attri) for helping me publish this repository as a package.