security::hash::scram-sha-256 (private)

 security::hash::scram-sha-256 password salt

Defined in packages/acs-tcl/tcl/security-procs.tcl

SCRAM hash function using sha256 as digest function. The SCRAM hash function is PBKDF2 [RFC2898] with HMAC as the pseudo-random function and where the output key length == hash length. We use 15K iterations for PBKDF2 as recommended in RFC 7677.

Parameters:
password
salt
Returns:
hex encoded password hash (64 bytes)

Partial Call Graph (max 5 caller/called nodes):
%3 ns_crypto::pbkdf2_hmac ns_crypto::pbkdf2_hmac security::hash::scram-sha-256 security::hash::scram-sha-256 security::hash::scram-sha-256->ns_crypto::pbkdf2_hmac

Testcases:
No testcase defined.
Source code:
            return [::ns_crypto::pbkdf2_hmac  -digest sha256  -iterations 15000  -secret $password  -salt $salt]
Generic XQL file:
packages/acs-tcl/tcl/security-procs.xql

PostgreSQL XQL file:
packages/acs-tcl/tcl/security-procs-postgresql.xql

Oracle XQL file:
packages/acs-tcl/tcl/security-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: