Skip to content

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?

License

Notifications You must be signed in to change notification settings

Otumian-empire/crypto-sec-oe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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.

from crypto import Crypto

ciphered_text = "jgnnq vjgtg"
shift = 2

crypto_obj = Crypto(shift, ciphered_text)

plane_text = crypto_obj.decrypt()

print(plane_text)

About

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?

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages