sodium_crypto_pwhash_str
PHP 7 >= 7.2.0, PHP 8
sodium_crypto_pwhash_str - Get an ASCII-encoded hash
Code Examples
Example #1 sodium_crypto_pwhash_str example
Result: $argon2id$v=19$m=65536,t=2,p=1$oWIfdaXwWwhVmovOBc2NAQ$EbsZ+JnZyyavkafS0hoc4HdaOB0ILWZESAZ7kVGa+Iw