Skip to main content

Encryption Algorithms Module

This directory contains implementations of several classic encryption algorithms. Below is a brief description of each file:

File Descriptions

__init__.py

  • This file marks the current directory as a Python package.

caesar.py

  • Implements the Caesar Cipher encryption algorithm.
  • Caesar Cipher is a simple substitution cipher that encrypts text by shifting letters in the alphabet by a fixed number of steps.
  • Functions: Caesar_encode(plaintext: str, key: int) -> str: Encrypts the given plaintext using the specified key. plaintext: The input string to be encrypted. key: The number of positions to shift each letter.
  • Caesar_decode(ciphertext: str) -> dict: Attempts to decrypt the ciphertext by trying all possible keys. ciphertext: The encrypted string to be decrypted.

Playfair.py

  • Implements the Playfair Cipher encryption algorithm.
  • Playfair Cipher is an encryption method based on a letter matrix, commonly used to encrypt text.
  • Functions: Playfair_encode(Keyword: str, Plaintext: str) -> str: Encrypts the plaintext using the Playfair cipher. Keyword: The encryption key used to generate the matrix. Plaintext: The input string to be encrypted.
  • Playfair_decode(Keyword: str, ciphertext: str) -> str: Decrypts the ciphertext using the Playfair cipher. Keyword: The encryption key used to generate the matrix. ciphertext : The encrypted string to be decrypted

Vigenere.py

  • Implements the Vigenère Cipher encryption algorithm.
  • Vigenère Cipher is a polyalphabetic substitution cipher that uses a key to determine the shift for each letter.
  • functions: Vigenere_encode(Plaintext: str, m: int, keyword: str) -> str: Encrypts the plaintext using the Vigenère cipher. Plaintext: The input string to be encrypted. m: The length of the keyword. keyword: The encryption key.
  • Vigenere_decode(ciphertext: str,m: int, keyword: str) -> str : Decrypts the ciphertext using the Vigenere cipher. ciphertext : The encrypted string to be decrypted. m: The length of the keyword. keyword: The encryption key.

Usage

  1. Import the modules:

    from crYpt import caesar, Playfair, Vigenere
    
  2. Call the corresponding functions to encrypt or decrypt.

Notes

  • Ensure that the input text and key meet the requirements of each algorithm.
  • For detailed usage instructions, refer to the comments in each file.

Metadata

Release files for crYpt-pr 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crYpt-pr 0.0.2
File Size Uploaded Provenance Actions
crypt_pr-0.0.2.tar.gz 4.6 kB Without provenance Details for crypt_pr-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crYpt-pr 0.0.2
File Interpreter ABI Platform Actions
crypt_pr-0.0.2-py3-none-any.whl Python 3 none any Details for crypt_pr-0.0.2-py3-none-any.whl

Total release size: 10.0 kB

Release files / crypt_pr-0.0.2.tar.gz

Download URL crypt_pr-0.0.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3e91fcc3f0669545b067b97036a88f646c6fc674938e20696ed7aaf1f7436775
BLAKE2b-256 checksum
How to use checksums
8ce27c0086e96c9ccbb41802515bc1f5761d570b5f3b3215532d12233cb8bef3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / crypt_pr-0.0.2-py3-none-any.whl

Download URL crypt_pr-0.0.2-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aaf45d623affaa549f0c1c43aab167914efdaa572f939376665e81d33c7c0651
BLAKE2b-256 checksum
How to use checksums
eb373394a20f3de7014322755201d4c1612a85bc4aad61ee92b792388fe492db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Security for crYpt-pr 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page