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

Argon2 hasher not releasing memory

I searched for one of the best hash functions for passwords and I found Argon2. But implementing it I crashed my dev server, then analyzed and I found out that the memory is not released (not immediately): This is the class I have: public class…
ShadyOverflow
  • 85
  • 3
  • 11
1
vote
0 answers

Argon2 Hashes Mismatched Between Implementations

I have some code written in Python using the Python Argon2 library. A simple test to encode an email addresses: import argon2 print(argon2.argon2_hash("example@example.com", salt="1558cc06add8a1023cbfa527c5af29fe", t=16, m=8, p=1, buflen=16,…
1
vote
1 answer

Different argon2 output between reference implementation and Go

When I'm running the argon2 reference implementation (with defaults) from the command line, it gives me the following output: echo "foobar" | argon2 saltsalt Type: Argon2i Iterations: 3 Memory: 4096 KiB Parallelism: 1 Hash: …
Tim
  • 1,585
  • 1
  • 18
  • 23
1
vote
0 answers

Symfony password hash change in db after kubernetes deployment

I've got an issue regarding the hash of our user passwords. It seems that our password hash changes after some deployment of our dokerized php application making our user login check invalid whereas the password didn't change. After login a valid…
Charlie
  • 61
  • 4
1
vote
1 answer

Docker image error argon2 code: 'ERR_DLOPEN_FAILED'

My app works on my local machine (Windows) but when I deployed the docker image (to heroku) I got this error with Argon2: Starting process with command `node dist/index.js` 2022-02-10T20:44:37.701683+00:00 app[web.1]:…
G-8
  • 107
  • 1
  • 7
1
vote
1 answer

How to convert hex string to CString in Swift?

I'm new to swift and i need to convert a hex string in swift to a CString to use in argon2 binding in c. I have seen: let saltCString = context.salt.cString(using: .utf8) argon2id_hash_raw(UInt32(context.iterations), UInt32(context.memory),…
Kim Mỹ
  • 386
  • 1
  • 4
  • 16
1
vote
2 answers

Flutter error after installing encrypt dependency

I am developing a simple application and in the authentication side i need to use the encrypt package to encrypt jwt tokens but since I installed the encrypt dependency flutter is now giving me this error: flutter pub add encrypt Launching…
user7790873
1
vote
2 answers

Argon2 Password Hashing Parameter Security

I'm developing a mobile application and in my lay research of the argon2 password hashing algorithm, it seems that (ignoring the key and salt) there are three main parameters: iterations memory parallelism While it obviously wouldn't make sense to…
Austin Brown
  • 830
  • 12
  • 24
1
vote
0 answers

How use jargon2-api in ColdFusion?

I have to implement Argon2 hashing in Adobe ColdFusion 2018. I have found two Java Bindings which could be used: argon2-jvm: https://github.com/phxql/argon2-jvm jargon2-api: https://github.com/kosprov/jargon2-api The first one I have successfully…
1
vote
0 answers

libsodium.dll runtimes folder was not found

I'm using libsodium 0.10.0.0 package to implement password hashing. After installing the nuget package the entries are created in package.config and project file as below:
Kapil
  • 1,823
  • 6
  • 25
  • 47
1
vote
0 answers

Swift String from byte array without validating encoding?

I'm trying to work with this Argon2 implementation. I'm implementing an existing protocol, so I don't have any flexibility in design, and the protocol treats various inputs to the function as byte sequences. However, that implementation treats…
joshlf
  • 21,822
  • 11
  • 69
  • 96
1
vote
1 answer

How to run Argon2 on a Node.js server on Google Cloud Platform?

I'm curently building a web app on Google App Engine Standard env. using Node.js 10.16.3. I would like to use Argon2 package. Unfortunately, I can't figure out how to install it locally on Windows7 and have no idea how on gcloud either. It is said…
1
vote
0 answers

How to reset password through phpMyAdmin for argon2 hash

I used to store password in database for sh1 or md5 like: $password = md5($password); It was very easy to reset password through phpMyAdmin - just edit user table, write password, select md5 or sh1 in function field and update the record.…
1
vote
1 answer

undefined constant PASSWORD_ARGON2I Laravel

I have been having difficulty using the new password hashing laravel just introduce (argon) in laravel. I got this error message Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' (this will throw an Error in a future version…
Gab
  • 11
  • 3
1
vote
1 answer

Different length of hashed password using argon2 in python and java

Not sure if it is the right output but when I hash a password with argon in java, i get the output: $argon2i$v=19$m=512,t=2,p=2$J1w6n04CBSEA8p0cCqeK7A$tb1ihqduhONYZN0+ldKkw980Y7h7ZJ2OcDTsXyIMibo while python gives…
Nie Selam
  • 1,343
  • 2
  • 24
  • 56