Skip to content
This repository was archived by the owner on Aug 18, 2024. It is now read-only.
This repository was archived by the owner on Aug 18, 2024. It is now read-only.

Use HMAC instead of random salt when encrypting #11

@krid

Description

@krid

It would be better to use an HMAC as salt during encryption, and then check validity after decryption.

This requires access to a non-js hashing API. Pure-js md5 is 1s for 50K, and SHA-256 is 2.5s, whereas Mojo.Model.encrypt is 25ms for 50K.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions