Questions tagged [argon2-ffi]

Argon2 is a hashing algorithm, primarily for password hashing. Use with specific language tags for questions regarding implementation

Argon2 is a hashing algorithm designed for the Password Hashing Competition, which it ultimately won. From the GitHub repository

Argon2 is a password-hashing function that summarizes the state of the art in the design of memory-hard functions and can be used to hash passwords for credential storage, key derivation, or other applications.

It has a simple design aimed at the highest memory filling rate and effective use of multiple computing units, while still providing defense against tradeoff attacks (by exploiting the cache and memory organization of the recent processors).

Argon2 has been implemented in a number of programming languages. Questions should pertain to using it within those languages.

78 questions
36
votes
2 answers

How do I use the Argon2 algorithm with password_hash?

So I heard that PHP 7.2 introduced the new Argon2 algorithm. But I'm confused on how I can use it with my existing code. For instance, I have this $password = password_hash('somepassword', PASSWORD_DEFAULT, ['cost' => 12]); Does PASSWORD_DEFAULT…
Machavity
  • 30,841
  • 27
  • 92
  • 100
17
votes
1 answer

Argon2 Algorithm in PHP7: understanding the time_cost parameter

I'm trying to implement the Argon2 algorithm in an authentification library. I want to be able to provide some useful tips for the users to set the parameters. While I understand how memory_cost and threads parameters affect the algorithm, I can't…
Indigo
  • 745
  • 5
  • 16
13
votes
3 answers

Argon2 library that hashes passwords without a secret and with a random salt that doesn't appear parseable

I am looking at different alternatives to hash passwords in a Python app. First I was settling for Flask-bcrypt (https://github.com/maxcountryman/flask-bcrypt), but then decided to use Argon2. The most popular Argon2 bindings for Python is…
Spurgu
10
votes
3 answers

How to pin pipenv requirements with brackets?

I just did: pipenv install django[argon2] And this changed my Pipfile: -django = "==2.1.5" +django = {extras = ["argon2"],version = "*"} I want to pin the requirements. First I will pin django to 2.1.5: django = {extras = ["argon2"],version =…
volingas
  • 1,023
  • 9
  • 21
7
votes
2 answers

Installing node-argon2 in Windows

Little background I was trying to install node-argon2 but having trouble installing it. I've been trying to download GCC, I already installed node-gyp as in the docs said. However I keep failing on this step.. CXX=g++-6 npm install argon2 I had no…
Irfandy Jip
  • 1,308
  • 1
  • 18
  • 36
6
votes
2 answers

How do I correctly adjust the Argon2 parameters in Go to consume less memory?

Argon2 by design is memory hungry. In the semi-official Go implementation, the following parameters are recommended when using IDKey: key := argon2.IDKey([]byte("some password"), salt, 1, 64*1024, 4, 32) where 1 is the time parameter and 64*1024 is…
m90
  • 11,434
  • 13
  • 62
  • 112
5
votes
2 answers

Argon2 with node docker container

I have NestJs application that works perfectly on my local machine (windows). Now I would like to create a docker container for my application. When i try to start my container i have one issue with Argon2. I install on the container all the argon…
Ralentix
  • 91
  • 1
  • 6
5
votes
1 answer

Difference between HSM and Argon2 ? which one is preferrable

I am working on a application dealing with customer details , which we want to store in our DB as encrypted , Which one is preferable Argon2
Muddassir Rahman
  • 976
  • 1
  • 9
  • 20
5
votes
2 answers

Argon2id Hashing Slow (Large Variance)

I'm using the C# Argon2 implementation provided through the Isopoh.Cryptography.Argon2 NuGet package (latest version 1.1.2 from here: https://github.com/mheyman/Isopoh.Cryptography.Argon2). Generating and verifying Argon2 hashes is sometimes fast…
Alex
  • 75,813
  • 86
  • 255
  • 348
4
votes
2 answers

Argon2 is difficult to get working with Angular 8 on MacOS: actually not working at all

I am working with: MacOS Mojave Angular 8 node v12.12.0 npm v6.13.4 and trying to make Argon2 to work in my Angular 8 app. In order to use Argon2 it is required to install gcc and node-gyp globally. I did install them as indicated on the npm pages…
user2120188
  • 427
  • 1
  • 4
  • 16
4
votes
2 answers

PHP Warning: Use of undefined constant PASSWORD_ARGON2ID when using password_hash() in php 7.3

I recently installed PHP 7.3.6 through Plesk's web GUI for a development copy of a web app, as I intend to update our production environment from php 7.0 to 7.3. I decided to take the opportunity to upgrade our password hashing from PBKDF2 to…
Matt Aikens
  • 71
  • 2
  • 11
4
votes
3 answers

Installing PHP on Amazon Linux 2 with Argon2 Enabled

I am having a problem with enabling Argon2 for password hashing. I am building PHP from source of Amazon Linux 2 but once the build have finishing and PHP is compiled, the PASSWORD_ARGON2I constant is undefined and the algorithm is not available. I…
Robert Hucks
  • 80
  • 1
  • 7
4
votes
1 answer

Maximum input and output length for Argon2

As you may know, maximum input length for bcrypt is 72 characters and the output length is 60 characters. (I've it tested in PHP. Correct me if I'm wrong) I want to know maximum input length and the exact output length for argon2. Thanks.
AliN11
  • 2,387
  • 1
  • 25
  • 40
3
votes
2 answers

zero knowledge architecture

I would like to encrypt some user data with the zero-knowledge architecture. I reference the implementation of the bitwarden and don't understand some parts. First, I would like to use the the argon2 to derive the key instead of pbkdf2, since it…
Daniel Chan
  • 343
  • 5
  • 13
3
votes
1 answer

Java Argon2 Hashing

I'm trying to figure out how to practically use argon2 hashing for passwords in Java. I've got to be missing something, because none of the APIs return discrete fields for the hash or the salt. I've tried both a JVM binding for argon2 and also…
Austin Brown
  • 830
  • 12
  • 24
1
2 3 4 5 6