📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

secrypto

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

secrypto

A powerful encryption and decryption library

1.0.4
PyPI
Maintainers
1

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!")



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.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts