Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sevenc-nanashi/scrypter
An encrypter.
https://github.com/sevenc-nanashi/scrypter
pip pypi python
Last synced: 27 days ago
JSON representation
An encrypter.
- Host: GitHub
- URL: https://github.com/sevenc-nanashi/scrypter
- Owner: sevenc-nanashi
- License: mit
- Created: 2021-01-01T13:14:34.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-28T13:13:35.000Z (almost 4 years ago)
- Last Synced: 2024-12-08T20:52:11.218Z (about 2 months ago)
- Topics: pip, pypi, python
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scrypter
[![PyPI - Version](https://img.shields.io/pypi/v/scrypter?style=flat-square) ![PyPI - Downloads](https://img.shields.io/pypi/dm/scrypter?style=flat-square)](https://pypi.org/project/scrypter)
An encrypter.## Example
`40387509113504109504119407395111045161094023441493410324129951111941790502111507119510108511100413295091254129950512551810841442` - Key: No key
`3184323731963185319531793127312031923242319231783126323231943176312732333194318431863222317931893127323631793187320132333196317431943168` - Key: `PyPI`
## Use with arguments
```
usage: scrypter [-h] [-e | -d | -g] [-k KEY] [text]this script will encrypt/decrypt text.
positional arguments:
text Text to encrypt/decrypt.optional arguments:
-h, --help show this help message and exit
-e, --encrypt do encrypting.
-d, --decrypt do decrypting.
-g, --gui show gui.
-k KEY, --key KEY key for encrypting/decrypting.
```## Use on script
```python
>>> import scrypter
>>> scrypter.encrypt("Hello, Python!")
'4017350610750811650110951610541242416264058551012150111751110351310850911941033'
>>> scrypter.encrypt("Good morning, Python!", "Python")
'315132323227320431433219319132353226320932213213312431533196322532273214319132313149'
>>> scrypter.decrypt('4017350610750811650110951610541242416264058551012150111751110351310850911941033')
'Hello, Python!'
>>> scrypter.decrypt('315132323227320431433219319132353226320932213213312431533196322532273214319132313149',
... "Python")
'Good morning, Python!'
```