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
1
vote
0 answers

Argon 2 library use in android

I dont have any knowledge of using c libraries, i need to use Argon2 library https://github.com/p-h-c/phc-winner-argon2 in my android application, i read alot of articles about adding c code into android app, but i cannot find the .so file of the…
user173488
  • 947
  • 1
  • 9
  • 20
0
votes
1 answer

How to select record where column is hashed in TypeOrm

My database has a table like this : id rt 1 value1 (hashed by argon) 2 value2 (hashed by argon) Which I want a record that match some value with hashed rt. somting like this : SELECT * FROM TABLE WHERE (argon.verify(rt,"some…
Majva
  • 88
  • 1
  • 5
0
votes
0 answers

Error: Modules not found when using argon2-browser in Ionic-Angular application

I want to use argon2-browser in my Ionic-Angular project. As soon as i sync with ionic cap sync i get these errors: ./node_modules/argon2-browser/dist/argon2.js:35:22-45 - Error: Module not found: Error: Can't resolve 'path' in…
marlonga
  • 1
  • 2
0
votes
0 answers

problem in hashing password and compare passwords in c#

I create sign Up form with username and pass then I hash password using Argon2 Algorithm . this is code for hashing: private byte[] CreateSalt() { var buffer = new byte[16]; var rng = new RNGCryptoServiceProvider(); …
heba
  • 11
  • 3
0
votes
1 answer

Using botan argon2 command line tools

I'm trying to use argon2 for password hashing from within a C++ application. The Botan library seems well regarded for this. I have installed the library on my system via yum. I'm trying to use the command line utilities provided to test the…
jasg
  • 182
  • 2
  • 10
0
votes
0 answers

How to use argon2id in php?

I wanna use argon2id(in php) for hashing my users password, But the problem is argon2id don't get static data For example when you write: echo password_hash("Hello", PASSWORD_ARGON2ID); echo password_hash("Hello", PASSWORD_ARGON2ID); The results…
0
votes
0 answers

restAPI login implementation when using password hashing with a salt (argon2)

I'm currently building a rest api and stumbled across this problem: The users password is stored hashed with a salt in the database as a typical argon2 string. A user tries to login and sends therewith his email and password (unhashed). But how do I…
0
votes
1 answer

Encoding a password with argon2 and save on PostgreSQL

I'm trying to encox user password to save in postgresql database. Using kotlin and argon2. I did the functions and in the tests, it works perfectly. But when I save it in the database, and I try to compare the passwords, it always gives an error.…
0
votes
0 answers

Sequelize async beforeCreate hook giving me an error while setting many to many association

I am using sequelize-typescript in this app and I have a model that currently is trying to hash a password before saving it account.model.ts @Table({ freezeTableName: true, tableName: 'accounts', }) export default class Account extends Model { …
0
votes
0 answers

Why does calling res.status().json() cause this error?

I'm trying to implement authentication with argon2, and the line that crashes the app is highlighted in the following code snippet. const { readFileSync } = require("fs"); const { Router } = require("express"); const users =…
ckl
  • 13
  • 3
0
votes
1 answer

Felogin passwords are not converted to argon2i on login during typo3 upgrade

I was doing an upgrade from Typo3 7 to Typo3 10. I am using felogin plugin for user login. In the documentations it is saying that the old salted passwords of users will get automatically converted to argon2i. But in my case, the login is not…
Ques
  • 253
  • 4
  • 19
0
votes
1 answer

TypeError: Cannot read property of 'hash' of undefined in argon2 and bcrypt

I'm using Nestjs and have tried both libraries argon2 and bcrypt. import argon2 from 'argon2' and import bcrypt from 'bcrypt' are both causing the same error. When I hover over hash in userDto.password = await argon2.hash(userDto.password);, I can…
S. Karki
  • 419
  • 3
  • 14
0
votes
1 answer

Why do I get: Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'argon2':

I am trying to use Argon2 to hash a password however I keep getting an UnsatifiedLinkError. I believe my pom.xml dependencies are correct but It seems like the library cannot be found. I tried manually loading the library (System.loadLibrary) but…
0
votes
1 answer

Argon2i password hashing and login for typo3 upgrade

I was doing a typo3 upgrade from version 7 to 10. But got stuck with the fe users login section. Read in the documentation as salted passwords will automatically gets converted to argon2i hash values. This works for be users correctly. I have got a…
Ques
  • 253
  • 4
  • 19
0
votes
1 answer

No module named django.contrib.auth.hashers

I am making a User Registration and Login website, wherein I am using Django. I have already executed pip install django[argon2] but the error No module named 'django.contrib.auth.hashers.Argon2PasswordHasherdjango'; 'django.contrib.auth.hashers' is…
Swati Srivastava
  • 1,102
  • 1
  • 12
  • 18