Giter Site home page Giter Site logo

cardinal9999 / cryptoquail Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 126 KB

[outdated] A Python cryptography package with more features, simplicity, and quality.

Python 96.36% CSS 3.64%
encryption csprng stream-cipher block-cipher encrypt encrypter hash-function encryptor prime-number python-encrypt

cryptoquail's Introduction

My Profile

Scratch: @Fee-bee-fee-bay

My best repository is currently Pekin.

Stats

What I'm Working On:

Making a JavaScript version of Pekin.

cryptoquail's People

Stargazers

 avatar

Watchers

 avatar

cryptoquail's Issues

How can primegen.generate() run faster?

When I typed in primegen.generate(50, 50000) into IDLE, it took a few seconds to generate [50021, 50023, 50033, 50047].

How can I make the function faster?

ψ_hash returns a large output when "XOR folding".

When I type this into my Python compiler:

import cryptoquail.hash as hash_
print(hash_.ψ_hash("abcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()"))

It returns this:

b'\x03\x07\x03\x0f\x03\x07\x03\x1f\x03\x07\x03\x0f\x03\x03\x07\x03\x0f\ta\x07{\x0c\x01DEFGHIJKLMNOPQRSTUVWXYZ[\]\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x13\x04#\x06\x07\x08A\t\r\x0b\x0c'

However, if you run this code:

print(len(ψ_hash("abcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()")))

it returns 69. It is supposed to return 36, because that's the limit.

If you look at the source code, there is no if statement detecting long outputs and repeating the XOR fold.
I tried to repeat the XOR folding process if the length is greater than 36, but it raised an error.

Is there a way to shorten a long hash without causing a hash collision?

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.