Giter Club home page Giter Club logo

blakejs's People

Contributors

bvanheu avatar davidyuk avatar dcposch avatar dependabot[bot] avatar jacogr avatar nazar-pc avatar prokopschield avatar szymonlesisz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blakejs's Issues

Pointless Uint32Array in blake2s input block

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.

Salt and personalisation parameters

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:

https://github.com/emilbayes/blake2b

there are no famous people named blake

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

browser implementation

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".

  1. Could you kindly give me some guideline on how to implement blakejs in a browser?
  2. I am trying to generate blake for files up to 2GB, do I use blake.blake2bHex or "blake2sInit, blake2sUpdate, and blake2sFinall"

Thanks

publish new version on npm

Hey @dcposch,

we recently got #19 merged by @nazar-pc (thanks for that! :-)). Can you publish a new release to NPM that includes this change? Otherwise we need to publish this separately and we'd like to avoid that.

Best regards,
Marco

ArrayBuffer support

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)

Export compression function

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)?

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.