Skip to content

aahan0511/Secrypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

assets/ascii.png

Secrypto

Secrypto is an excellent cryptographer, with more than $4.5e806$ (45 with 805 following zeros!) possible combinations.




Contents



How To Use

Create a Key

from Secrypto import Key

key = Key()

Key can have the following parameters:

  • alterations (optional) (default -> 3) - This defines the number of alterations for each character.
  • seed (optional) (default -> None) - This defines the random seed at which the key will be made

You can also get the seed at which the Key is made and the key itself. To get the key and the seed from the Key you can write:

from Secrypto import Key

key = Key()
print(key.key)
print(key.seed)

Encryption and Decryption

When you have the key, it is pretty simple to encrypt and decrypt.

from Secrypto import Key, encrypt, decrypt

key = Key()

text = "Hello, World"

encryption = encrypt(
    text,
    key
)
print(encryption)

decryption = decrypt(
    encryption,
    key #the same key should be used.
)
print(decryption)

if text == decryption:
    print("success!")



Installation

Write

pip install Secrypto

Or see the PyPI page



Secrypto is licensed under the CC0 1.0 Universal License.



Follow the CONTRIBUTING.md to ensure a smooth contribution process.



Secrypto has the Contributor Covenant Code of Conduct.



To view the security and data safety of Secrypto, see SECURITY.md.