Skip to main content

A powerful encryption and decryption library

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

secrypto-1.1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

secrypto-1.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file secrypto-1.1.0.tar.gz.

File metadata

  • Download URL: secrypto-1.1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for secrypto-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b13a281d8bb64101e25172f76bf58f423cb97e761c7bafe7a483234c91f42dec
MD5 f68bf14e1fb3a94e1795dd861e5dc1ed
BLAKE2b-256 d947e2e444dec968a26fc2524c6d98bcc9893fda9d90d724a4d949c9f0515dde

See more details on using hashes here.

File details

Details for the file secrypto-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: secrypto-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for secrypto-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1334d521c693de67cfd58ed7f71d28f9ea3fa2cb80c018a079a21e2e8c40f63
MD5 acf5d5fa3312341c7f53ae4ad2585adb
BLAKE2b-256 9fc51d8a74329db32eb9c1ab6e557a51ed1ecdb8c48a6da08eb9973c5369b81f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page