Skip to content

A light-weight encryption & decryption library, Built with power and simplicity!

License

Notifications You must be signed in to change notification settings

pyGuru123/Decrypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Decrypto

A light-weight encryption & decryption library, Built with power and simplicity!

Decrypto is a light-weight python package to provide state of the art encryption and decryption techniques and aims to be simple and easy to use. Being open-source, Decrypto wraps a huge number of old, modern, secure and encoding based encryption-decryption methods while still being fast

Features

  • It's light-weight and fast
  • Simple to use and learn
  • Provides a multidegree of techniques from various cryptographic field

Installation

Use the package manager pip to install decrypto.

pip install decrypto

Usage

You can either use a classical cipher technique

from decrypto import MorseCodeCipher

cipher = MorseCodeCipher()
data = 'Hello World'

# encrypt using morse code cipher
encrypted = cipher.encrypt(data)
print(encrypted)

# decrypt using morse code cipher
decrypted = cipher.decrypt(encrypted)
print(decrypted)

or a more advanced and modern cipher technique

from decrypto import RSACipher

cipher = RSACipher()
data = 'hello world'

keys = cipher.generate_keys(23, 31)
encrypted = cipher.encrypt(message, keys['public_key'])
decrypted = cipher.decrypt(encrypted, keys['private_key'])

print(keys)
print(encrypted)
print(decrypted)


This Repository is Participating in Hacktoberfest 2023



To participate and contribute checkout our issues section. You can also discuss new ideas in our telegram group here @pyguru

Our other repositiores partcipating in Hacktoberfest 2023