🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

pycryto

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pycryto

A simple cryptography library using AES and PKCS7 padding

0.1.0
PyPI
Maintainers
1

pycryptography

A simple encryption library using AES and PKCS7 padding.

Installation

pip install pycryptography

## Usage
```xml
from encryption import encrypt, decrypt

# Define your key and plaintext
key = "thisisaverysecretkey1234"
plain_text = "Hello, World!"

# Encrypt the plaintext
encrypted_text = encrypt(plain_text, key)
print(f"Encrypted: {encrypted_text}")

# Decrypt the ciphertext
decrypted_text = decrypt(encrypted_text, key)
print(f"Decrypted: {decrypted_text}")

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