GithubHelp home page GithubHelp logo

satriahrh / ftie-python3 Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 687 KB

Implementation of File to Image Encryption

License: GNU General Public License v3.0

Python 100.00%
cryptography-project acm-algorithm randomized-text-algorithm blum-blum-shub file-to-image-encryption python3

ftie-python3's People

Contributors

hafizhme avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ftie-python3's Issues

Key Recommendation

Our key validation is too many. Remove key input from the user to improve usability matter.

Provide docstring in each unit

Our code is too messy and will be hard for the newcomer to understand. The current optimal solution to describe the code is to explain it by mouth that it is not so effective for remote working.

There are some python docstring style that we can follow. It does not have any matter which choice we will choose but efficiency.

PS: some of our units already have a docstring though and we do not follow any style, this is a problem too that is we do not have consistency.

Matrix to Image Need Changes

We have following result for time profiling:

ID 0.001_11_7_9_1_1_2
ENCRYPTION
transform.file_to_bytes                     0.0000805855s 0.063%
transform.pad_bytes                         0.0000362396s 0.028%
RT.encrypt                                  0.0417234898s 32.394%
transform.compile_bytes_to_pixels           0.0001916885s 0.149%
transform.compile_pixels_to_matrix          0.0001032352s 0.080%
ACM.encrypt                                 0.0008668900s 0.673%
transform.matrix_to_image                   0.0633673668s 49.198%
Image.save                                  0.0224308968s 17.415%

DECRYPTION
Image.open                                  0.0000782013s 0.208%
transform.image_to_matrix                   0.0009226799s 2.458%
ACM.decrypt                                 0.0011425018s 3.044%
transform.decompile_matrix_to_pixels        0.0000567436s 0.151%
transform.decompile_pixels_to_bytes         0.0002787113s 0.742%
RT.decrypt                                  0.0349469185s 93.097%
transform.strip_bytes                       0.0000090599s 0.024%
transform.bytes_to_file                     0.0001034737s 0.276%

transform.matrix_to_image seems to have bad performance that we need to somehow change our implementation. Our proposed solution is to move image transformation before doing ACM.

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.