I have created a PHP file which includes the following code:
...
...
$password = password_hash($_GET['password'], PASSWORD_ARGON2I, ['memory_cost' => 2048, 'time_cost' => 4, 'threads' => 3]);
...
...
I have tested it on XAMPP server on my personal machine, and it works fine. When I transferred the file to my AWS EC2 server, the password_hash function does not seem to work, I'm using PHP 7.2.5 on the AWS EC2, the XAMPP as well. Additional information: my machine is Windows 10 and the EC2 is RedHat. I have been trying for a whole day to figure this out but no luck. What could be the problem? And how can I solve this?