Skip to main content

A simple Unicode based text crypter

Project description

JUC

JUC is a simple Unicode based text crypter

GitHub page

note: You can find all the examples in the folder examples

Installation

For now this project is not on pypi ( pip ), so you have to install it manually by downloading the repo

Preview

Original and decrypted file differences

Differences The quality of the original file and the decrypted file is equal :)

Text Crypter

TextCrypter

Examples

Encrypting a text

from JUC import *
worker = Juc('YourSecretKey')
print(worker.crypt(b'ehy, hello there'))

Decrypting a text

from JUC import *
worker = Juc('YourSecretKey')
print(worker.decrypt(text).decode())

Encrypting a file

from JUC import *

worker = Juc('YourSecretKey')

filePath = 'image.png'

with open(f'result.png', 'wb') as f:
    with open(filePath, 'rb') as file:
        content = file.read()
        crypted = worker.crypt(content)
        f.write(crypted.encode())

Decrypting a file

from JUC import *

worker = Juc('YourSecretKey')

filePath = 'result.png'
fileType = filePath.split('.')[-1]

with open(filePath, 'r') as file:
    content = file.read()
    with open(f'result-decrypted.{fileType}', 'wb') as f:
        decrypted = worker.decrypt(content, False)
        f.write(decrypted)

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

JUC-0.0.5.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

JUC-0.0.5-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

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