argon2-ffi

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

久未见 提交于 2020-06-28 03:45:14
问题 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 of Argon2. GCC v9 was installed. But, I had repeatedly problems executing: CXX=g++-9 npm install I kept getting errors about stdlib++ . I tried using Apple's CLang++ and got a successful build with: CXX=clang++ npm install I imported argon2 in my

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

徘徊边缘 提交于 2020-05-14 12:11:11
问题 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 I don't have the required library for argon2i compiled into PHP. Now I found a very similar problem description here, but I am not able to change the algorithm in the process of the installation. Is there a way to use "bcrypt" or "phpass" right

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

放肆的年华 提交于 2020-05-14 12:09:25
问题 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 I don't have the required library for argon2i compiled into PHP. Now I found a very similar problem description here, but I am not able to change the algorithm in the process of the installation. Is there a way to use "bcrypt" or "phpass" right

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

萝らか妹 提交于 2019-12-12 11:35:15
问题 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 Argon2ID since the PHP core has it already included. I was surprised to get a warning stating that the PASSWORD_ARGON2ID constant is undefined, since I understand it was added in php 7.3.0. I tried searching for any instance of this error and the only

Argon2 Algorithm in PHP7: understanding the time_cost parameter

可紊 提交于 2019-12-09 08:10:48
问题 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 seem to wrap my head around the time_cost parameter. What the PHP doc says: time_cost (integer) - Maximum amount of time it may take to compute the Argon2 hash. Defaults to PASSWORD_ARGON2_DEFAULT_TIME_COST. Interrogation 1 - The default value is 2.

Argon2i in PHP7 - Picking Appropriate Options

妖精的绣舞 提交于 2019-12-07 16:38:15
问题 What values should I use for generating Argon2i hashes and how can I find the appropriate settings my hardware can afford? Namely: memory_cost time_cost threads as: $options = [ 'memory_cost' => 1<<17, 'time_cost' => 4, 'threads' => 3, ]; $hash = password_hash('test', PASSWORD_ARGON2I, $options); There is a simple script in PHP docs for finding the appropriate cost value for bcrypt hashes. How can this be fitted for Argon2? 回答1: From: PHP RFC Argon2 password_hash Cost Factors From: Due to the

Argon2i in PHP7 - Picking Appropriate Options

人走茶凉 提交于 2019-12-05 22:13:24
What values should I use for generating Argon2i hashes and how can I find the appropriate settings my hardware can afford? Namely: memory_cost time_cost threads as: $options = [ 'memory_cost' => 1<<17, 'time_cost' => 4, 'threads' => 3, ]; $hash = password_hash('test', PASSWORD_ARGON2I, $options); There is a simple script in PHP docs for finding the appropriate cost value for bcrypt hashes. How can this be fitted for Argon2? From: PHP RFC Argon2 password_hash Cost Factors From: Due to the variety of platforms PHP runs on, the cost factors are deliberately set low as to not accidentally exhaust

How do I use the Argon2 algorithm with password_hash?

◇◆丶佛笑我妖孽 提交于 2019-11-30 11:04:03
问题 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 now use Argon2? What, if anything, do I need to change with password_verify ? Is bcrypt considered insecure now? 回答1: What is Argon2? Is bcrypt bad now? Prior to PHP 7.2, the only hashing algorithm password_hash used was bcrypt. As of this writing,