Giter Club home page Giter Club logo

juc's Introduction

Update: I did this program when I was still not very experienced on computer security ( even now Iā€™m not an expert ) , it was created only as a leisure and I do not recommend using it for projects where you need serious security system.

JUC

JUC is a simple Unicode based text crypter

NOTE: This project was not created to be used in other projects, but only to be able to read the code and understand its operation, it is strongly discouraged to use JUC in important security systems

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

Installation

You can find the project on PyPi. To install it execute this command in the cmd

pip install JUC

Preview

File Encrypter

Gif Video

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.