https://github.com/otumian-empire/crypto-sec-oe
Crypto is a sample practice project for the swift python programming material, https://github.com/Otumain-empire/swift-python that implements the Cesar-cipher. Isn't that great?
https://github.com/otumian-empire/crypto-sec-oe
otumian-empire programming python3 swift-pythom
Last synced: about 2 months ago
JSON representation
Crypto is a sample practice project for the swift python programming material, https://github.com/Otumain-empire/swift-python that implements the Cesar-cipher. Isn't that great?
- Host: GitHub
- URL: https://github.com/otumian-empire/crypto-sec-oe
- Owner: Otumian-empire
- License: mit
- Created: 2021-05-04T21:09:58.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-04T21:34:58.000Z (over 4 years ago)
- Last Synced: 2025-06-05T12:41:01.075Z (6 months ago)
- Topics: otumian-empire, programming, python3, swift-pythom
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CRYPTO
Crypto is a sample practice project for the swift python programming material, [swift-python] that implements the Cesar-cipher. Isn't that great?
## Test
- Run test, `python -m pytest test.py` or just `python test.py`
## Dependency
- `pytest` - pip install pytest
## Usage
Create an encrypted text.
```python
from crypto import Crypto
plane_text = "Hello there"
shift = 2
crypto_obj = Crypto(shift, plane_text)
encrypted_text = crypto_obj.encrypt()
print(encrypted_text)
```
Deciper an encrypted text.
```python
from crypto import Crypto
ciphered_text = "jgnnq vjgtg"
shift = 2
crypto_obj = Crypto(shift, ciphered_text)
plane_text = crypto_obj.decrypt()
print(plane_text)
```
#
[swift-python]: https://github.com/Otumain-empire/swift-python