https://github.com/null-none/crypto-xor
Encrypt-decrypt string with your password
https://github.com/null-none/crypto-xor
decryption encryption encryption-decryption python xor
Last synced: 12 months ago
JSON representation
Encrypt-decrypt string with your password
- Host: GitHub
- URL: https://github.com/null-none/crypto-xor
- Owner: null-none
- License: mit
- Created: 2024-11-13T11:04:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-13T11:20:22.000Z (over 1 year ago)
- Last Synced: 2025-01-26T09:28:10.628Z (about 1 year ago)
- Topics: decryption, encryption, encryption-decryption, python, xor
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crypto-xor
Encrypt-decrypt string with your password
### Install
```bash
pip install crypto-xor
```
### Example
```python
from crypro_xor.script import CryptoXOR
crypto_xor = CryptoXOR()
encrypted = crypto_xor.encrypt_xor(message="hello world", secret="Password123!")
print(encrypted)
# g197d189d18bd192d18ed18bd08cd081d1b3d19dd16d
decrypted = crypto_xor.decrypt_xor(message="g197d189d18bd192d18ed18bd08cd081d1b3d19dd16d", secret="Password123!")
print(decrypted)
# hello world
```