A simple and comprehensive text encryption/decryption library
Project description
Takucyrpt
A simple encryption and decryption module for text.
Installation
pip install takucyrpt
Usage
from takucyrpt import encrypt, decrypt
text = "Hello, World!"
key = "mykey"
encrypted = encrypt(text, key)
decrypted = decrypt(encrypted, key)
print(f"Original: {text}")
print(f"Encrypted: {encrypted}")
print(f"Decrypted: {decrypted}")
Functions
encrypt(text, key)
Encrypts the given text using a simple XOR cipher with the provided key.
decrypt(ciphertext, key)
Decrypts the given ciphertext using a simple XOR cipher with the provided key.
Example
from takucyrpt import encrypt, decrypt
# Encrypt a message
message = "This is a secret message"
key = "secretkey"
encrypted_message = encrypt(message, key)
print(f"Encrypted: {encrypted_message}")
# Decrypt the message
decrypted_message = decrypt(encrypted_message, key)
print(f"Decrypted: {decrypted_message}")
License
MIT
Author
Takuya
Changelog
1.0.0
- Initial release
- Basic encryption and decryption functions
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
takucyrpt-1.0.0.tar.gz
(6.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file takucyrpt-1.0.0.tar.gz.
File metadata
- Download URL: takucyrpt-1.0.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
817598ece183bc3b23e5c4a89e8c838f1839eab61f137148b718cdaaac1294e3
|
|
| MD5 |
3ea1140091b3972b5355c46563c222b9
|
|
| BLAKE2b-256 |
19f707ca6f3cf84f2aaad7358d4b42d6e774415f0708208787081b890e46b658
|
File details
Details for the file takucyrpt-1.0.0-py3-none-any.whl.
File metadata
- Download URL: takucyrpt-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de73b6306274183ad27ae6d31c1642fd2a6fd392cfa290e0762bc4c4ead7c0c8
|
|
| MD5 |
41b1a8b1d11eedb34e834cbca4323612
|
|
| BLAKE2b-256 |
1ced4279f58c3a9816426f2e8850f08cef14c5c6d04739ce64bcca5ddb564425
|