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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file JUC-0.0.5.tar.gz.

File metadata

  • Download URL: JUC-0.0.5.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for JUC-0.0.5.tar.gz
Algorithm Hash digest
SHA256 e0f0445495a60cdc484464b709e938332eddb62a3f46dc3fae08c0db290bbf52
MD5 c43779245b347e3b230b73f1778d2901
BLAKE2b-256 c35ec05b3ddb133b9573197a8f54ad16d611b766374db3f57ee24584d353a2d8

See more details on using hashes here.

File details

Details for the file JUC-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: JUC-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for JUC-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 561a5de0048de66144e1681179e9eb9ecfa1b99a249547974d880b6d82f94fae
MD5 02073dd63011a54a172c74590c6058ae
BLAKE2b-256 9eebe1cb4b32034294e99f2fe4800a026b0ba98255719aedfaa14a2db604bd13

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