Giter Club home page Giter Club logo

Comments (4)

antelle avatar antelle commented on August 29, 2024 1

I see, didn't know it supported this parameter, thanks for pointing that out! It makes sense to add support indeed.

from argon2-browser.

antelle avatar antelle commented on August 29, 2024 1

Done, now you can do this:

argon2.hash({
    ...
    secret: new Uint8Array([...]), // optional secret data
    ad: new Uint8Array([...]), // optional associated data
})

from argon2-browser.

antelle avatar antelle commented on August 29, 2024

Hi! If I'm not mistaken, you can make keyed hashing from any cryptographic hash function. However Argon2 is not a hashing function per se (it is, but it's a key derivation function, which means it's designed to be computation-hard), it's not clear why you need it for keyed hashing. But it should be possible to implement.
I'd suggest asking in the argon2 repo itself though, this repo is just a fork for WebAssembly, probably you'll get better advice from experts there.

from argon2-browser.

DomainFlag avatar DomainFlag commented on August 29, 2024

@antelle thanks for the quick response, I mean that I am using the Argon2 Repo the official one in Objective-C + Swift and if you have a look at the argon2_context that they use to initialize before key derivation, there is an optional secret data parameter used for keyed hashing that allows a secret key to be an extra input at hashing time. But, the argon2.hash in your repo does not support such parameter if I am not mistaken?

from argon2-browser.

Related Issues (20)

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.