Scratch: @Fee-bee-fee-bay
My best repository is currently Pekin.
Making a JavaScript version of Pekin.
[outdated] A Python cryptography package with more features, simplicity, and quality.
Scratch: @Fee-bee-fee-bay
My best repository is currently Pekin.
Making a JavaScript version of Pekin.
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?
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.