Coder Social home page Coder Social logo

bombasticbob / sftcrypt Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 17 KB

A simple encryption utility using a unique algorithm, a symmetrical stream cipher, and 128-bit key.

License: Creative Commons Zero v1.0 Universal

Makefile 0.45% C++ 99.55%
encryption-tool encryption-algorithm posix-compatible freebsd-utility linux-app

sftcrypt's People

Contributors

bombasticbob avatar

Watchers

 avatar  avatar

sftcrypt's Issues

Algorithm has a possible bug

In the case where the sort algorithm tries to sort duplicate entries while creating the dictionary, some operating systems and/or compiler versions may sort differently.

The algorithm should never generate duplicates in the dictionary. However it is theoretically possible that it may happen. If this should occur, then the random sequence generation is weak and will need to be modified to ensure that it never happens.

Regardless, if the encrypted output is decrypted on a different platform, it is possible that the key will no longer work, due to the manner in which the sorting has taken place.

The current random sequence generators have been specifically tweeked to prevent this from happening. However, as previously stated, it is still theoretically possible.

To prevent this from becoming a serious problem, there are a couple of possible remedies:

  • include a unique sequence number, to be part of the sort. The generated value plus the sequence number would be sorted consistently across all platforms.

  • include a warning in the output if matching values are ever found, to basically use a different key.

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.