Skip to content

Why the default number of iteration is 10000? #2

@qw4990

Description

@qw4990

These four lines:

32: hmacKey := pbkdf2.Key([]byte(password), hmacSalt, 10000, 32, sha1.New)

45: cipherKey := pbkdf2.Key([]byte(password), encSalt, 10000, 32, sha1.New)

91: encKey := pbkdf2.Key([]byte(password), encSalt, 10000, 32, sha1.New)

92: hmacKey := pbkdf2.Key([]byte(password), hmacSalt, 10000, 32, sha1.New)

spend too much time!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions