src/Restgrip/Sodium/Service/SodiumService.php
/**
     * Hash password using Argon2i
     *
     * @param string $password
     *
     * @return string
     */
Hash password using Argon2i
@param string $password

@return string
Hash password using Argon2i @param string $password @return string
public function passwordCreate(string $password) : string
    {
        $passwordHash = Sodium\crypto_pwhash_str(
            $password,
            Sodium\CRYPTO_PWHASH_OPSLIMIT_INTERACTIVE,
            Sodium\CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE
        );
        $this->wipeMemory($password);
        return $passwordHash;
    }
public function passwordCreate ( string $ password ) : string { $ passwordHash = Sodium \ crypto_pwhash_str ( $ password , Sodium \ CRYPTO_PWHASH_OPSLIMIT_INTERACTIVE , Sodium \ CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE ) ; $ this -> wipeMemory ( $ password ) ; return $ passwordHash ; }
Hash password using Argon2i
 @param string $password
Hash password using Argon2i @param string $password