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
0
votes
0 answers

Argon2 in DJANGO and passwords in session variables

So far I used SHA256 to hash passwords (I know, terrible) and now I would like to switch to Argon2. My problem is that if I understand it correctly I am going to have to store the plain text password in a session variable now. Now I am storing the…
Gábor Erdős
  • 3,599
  • 4
  • 24
  • 56
0
votes
1 answer

Generating hash with Argon2 on Botan results in garbage data and 0xC0000005: Access violation reading location 0x0000000100000000

I'm trying to hash passwords using the C++ cryptography library Botan. I've tried testing out the library using the code below: #include #include #include #include int main() { …
emredesu
  • 179
  • 1
  • 5
  • 11
0
votes
1 answer

Argon2id Hex to Hash

I'm migrating users from one user store to another. The user password info is stored in Argon2 hash. I have figured out all the inputs, I have the encoded hash but I cannot figure the steps between Hex Form and Encoded Form I have used this…
0
votes
1 answer

Angular build fails after adding argon2 or bcrypt from npm

I have an Angular project where I want to use argon2 library to encrypt passwords. I added it to the back end, the implementation it's fine but my Angular front end app started to break. I get a huge list of errors like: ERROR in…
chenny
  • 769
  • 2
  • 17
  • 44
0
votes
1 answer

How do i use argon2 asynchronously with python tornado?

Here is the handler for my login page, which i intend to use via ajax post requests. from argon2 import PasswordHasher from argon2.exceptions import VerifyMismatchError class AdminLoginHandler(RequestHandler): async def post(self): …
0
votes
2 answers

Node.js argon2 Package Will Not Return String

I am writing a web app that requires password hashing. I am using the argon2 package from npm to achieve this. Below is a function that I have written that is ment to return a string such as…
NG235
  • 1,091
  • 12
  • 33
0
votes
1 answer

SyntaxError: await is only valid in async function with argon2

I'm implementing argon2 in my application for password. try { if (await argon2.verify("", "password")) { // password match } else { // password did not match } } catch (err) { // internal failure } But getting an…
Victory
  • 1,184
  • 2
  • 11
  • 30
0
votes
1 answer

hashnig passwords with argon2_cffi

I am trying to understand how should I use argon2_cffi to store hashed passwords in my database. Specifically, I am using this code to write the hashed password into my PostgreSQL table. from argon2 import PasswordHasher ph =…
umbe1987
  • 2,894
  • 6
  • 35
  • 63
0
votes
2 answers

Installation of TYPO3 v9.5 fails in last step because of missing PHP library "argon2i"

I am trying to install TYPO3 v9.5.3 for the first time and fail in the last step of the installation routine (after submitting the form with the login details for the admin user). As far as I could track this issue down, I think the problem is that…
chris
  • 2,109
  • 2
  • 23
  • 33
0
votes
0 answers

Argon2 5 threads is slower than 4 threads

I am using https://github.com/charlesportwoodii/php-argon2-ext to play around with Argon2. While i was playing with the parameters I noticed that the speed is not decreasing per core accordingly. See a graph here: Time is in seconds Code a…
Jordy
  • 1
  • 1
0
votes
1 answer

Argon2 encryption in perl

I'm making simple perl script for sign up/login with Argon2 for encryption. (The credentials are taken from HTML Forms). The creation of users works fine , username and hashed password are stored in the database. The problem comes with the…
Angel
  • 103
  • 4
0
votes
2 answers

Hashing functions checks for argon2id even when driver set to bcrypt

I am upgrading an older project to Laravel 5.7. User passwords were hashed with bcrypt previously. On the new setup hashing driver is set to bcrypt in the config file but still getting the following error. local.ERROR: This password does not use the…
Sakibul Alam
  • 1,731
  • 2
  • 21
  • 40
0
votes
0 answers

Couldn't install Argon2 on JRuby

I am trying to install argon2 gem on JRuby 9.1.13, Here is the gem's homepage. So I run gem install argon2 and got the error Fetching: argon2-1.1.2.gem (100%) Building native extensions. This could take a while... ERROR: Error installing argon2: …
0
votes
0 answers

How do I deal with multiple dependencies that need to be built in different environments?

Background: We're developing several Node.js microservices on our local Mac OS X machines. Our development environment is a Vagrant/Docker environment in which the code is mapped into to run. For a specific microservice, we are utilizing two…
Michael Irigoyen
  • 22,513
  • 17
  • 89
  • 131
-1
votes
1 answer

How to Implement Argon2 Hash on OpenLdap?

Argon2 is a password hashing algorithm that was selected as the winner of the Password Hashing Competition in July 2015. It is a secure and efficient algorithm that is resistant to brute-force attacks. I am currently using OpenLdap v2.5 packaged as…
Adrien Arcuri
  • 1,962
  • 1
  • 16
  • 30