dcposch / blakejs Goto Github PK
View Code? Open in Web Editor NEWPure Javascript implementation of the BLAKE2b and BLAKE2s hash functions
Home Page: https://www.npmjs.com/package/blakejs
License: MIT License
Pure Javascript implementation of the BLAKE2b and BLAKE2s hash functions
Home Page: https://www.npmjs.com/package/blakejs
License: MIT License
While re-writing this module in TypeScript, I noticed that the input block is using a Uint32Array, when a Uint8Array would suffice.
blake2s.js line 107
I intend to submit a fix shortly.
Hi @dcposch,
Thank you for the work you've done on implementing BLAKE2! I'm in the works of porting libsodium to the browser and needed BLAKE2, but specifically the salt
and personal
options in the parameter block. I had some other reservations about your API too, so I took the liberty to copy your implementation, and modify the parts I wanted changed.
I'd like to contribute my changes back to you if you'd like, in the style that you already have here. I can port my changes for both blake2b
and blake2s
. Is that something you'd be interested in?
You can see my copy (with credits to you) here:
Hi :)
I could PR types for blakejs, have them ready and working. Do you accept PR's?
Best,
Aron
i was trying to think of mascots for this module but it appears there are no celebrities named blake. opening issue in case anyone knows famous blakes I haven't of
Hi, can you provide one file that can have all functions is global and accessible everywhere?
Thanks
I am trying to use blake2s in Chrome. I already used Require.js.
<script data-main="/js/util.js" src="/js/require.js"></script> <script data-main="/js/blake2s.js" src="/js/require.js"></script>But I receive the error, "Uncaught TypeError: util.normalizeInput is not a function".
Thanks
Is it possible to calculate hash directly from ArrayBuffer
, rather than new Uint8Array(arraybuffer)
? Would that avoid additional memory allocation for Uint8Array
? (I assume browser allocates same amount of memory for cloning, not sure)
The issue shown in this stack overflow raises itself with use of blakejs on Node with version < 4.x.x
http://stackoverflow.com/questions/31632569/configure-node-to-use-object-assign
I saw this issue on Travis CI. You can see the fails here:
https://travis-ci.org/jo/session25519/builds/117343159
Cheers.
We at EthereumJS are looking into integrating the Blake2b F function into our project (according to this spec).
I understand the compression function is internal to your project, but it'd help us avoid maintaining a fork of this library or re-implementing the function ourselves. I thought I'd create an issue and ask if you're open to the idea of exporting the compression function (with one extra parameter to determine the number of rounds)?
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.