pub fn pbkdf2_hmac<'py>(
py: Python<'py>,
algorithm: &str,
password: &[u8],
salt: &[u8],
iterations: u32,
length: usize,
) -> PyResult<Bound<'py, PyBytes>>Expand description
Derive a key using PBKDF2-HMAC.
Returns length raw key bytes derived from password and salt
using the given HMAC algorithm and the specified iterations count.
import synta
key = synta.pbkdf2_hmac("sha256", b"password", b"salt", 100_000, 32)