Skip to content
This repository has been archived by the owner on Mar 19, 2019. It is now read-only.

Bug 984288 — Store userHMac into the database. #29

Merged
merged 0 commits into from
Mar 18, 2014

Conversation

almet
Copy link
Contributor

@almet almet commented Mar 18, 2014

No description provided.

}
var _hmac = crypto.createHmac(
algorithm,
new Buffer(secret, "hex")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if the value of |secret| is not actually a hex string? Do you need to check and throw?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I tried and new Buffer doesn't throw an error if secret is not an hex key. 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Natim Natim merged commit 413b252 into master Mar 18, 2014
@Natim Natim deleted the bug/984288-mac-userid branch March 18, 2014 15:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants