Skip to content

add a convenient way for common pbkdf2::<Hmac<Sha1>>(*** ) #335

@sxci

Description

@sxci

eg:

let mut bytes = [0u8; 16];
pbkdf2::<Hmac<Sha1>>(password, b"saltysalt", 1003, bytes.as_mut());

go lang : https://pkg.go.dev/golang.org/x/crypto/pbkdf2

dk := pbkdf2.Key([]byte(password), []byte("saltysalt"), 1003, 16, sha1.New)

in rust, there are additional info: mut bytes , Hmac,
golang's pbkdf2.Key look like more convenient

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions