Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ivoilic/xor-crypt-python
🔣 Simple Python XOR string encryption library
https://github.com/ivoilic/xor-crypt-python
decryption encrypt encryption hash javascript pypi pypi-packages python string xor
Last synced: 9 days ago
JSON representation
🔣 Simple Python XOR string encryption library
- Host: GitHub
- URL: https://github.com/ivoilic/xor-crypt-python
- Owner: ivoilic
- License: mit
- Created: 2019-06-18T01:47:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-24T15:55:06.000Z (over 5 years ago)
- Last Synced: 2024-10-12T08:45:10.238Z (about 1 month ago)
- Topics: decryption, encrypt, encryption, hash, javascript, pypi, pypi-packages, python, string, xor
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# XOR-Crypt-Python
[![PyPI Version](https://img.shields.io/pypi/v/xorCryptPy.svg)](https://pypi.python.org/pypi/xorCryptPy/)
[![Python Versions](https://img.shields.io/pypi/pyversions/xorCryptPy.svg)](https://pypi.python.org/pypi/xorCryptPy/)
[![License: MIT](https://img.shields.io/badge/License-MIT-red.svg)](LICENSE)A simple XOR string encryption library based on the JavaScript library [XOR-Crypt](https://github.com/RobLoach/xor-crypt) by [RobLoach](https://github.com/RobLoach) but in Python.
## Installation
```bash
pip install xorCryptPy
```You can also download the package manually from [PyPI](https://pypi.org/project/xorCryptPy/).
## Usage
Works exactly like the JavaScript version. The same function encrypts and descripts a string using a given key.
```python
from xorCryptPy import xorCryptencrypted = xorCrypt('Hello World')
# Outputs: Ncjji&Qitjbdecrypted = xorCrypt(encrypted)
# Outputs: Hello World# Use your own XOR Key.
encrypted = xorCrypt('Hello World', 9)
decrypted = xorCrypt(encrypted, 9)
```_(The default key is the same as the one from the JavaScript version!)_
## License
Licensed under the [MIT license](https://opensource.org/licenses/MIT)