h2non / jshashes

Fast and dependency-free cryptographic hashing library for node.js and browsers (supports MD5, SHA1, SHA256, SHA512, RIPEMD, HMAC)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

b64 padding .... bug/typpo ?

develmts opened this issue · comments

Digging on code, I found that.. and it seems strange
b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', // base-64 pad character. Defaults to '=' for strict RFC compliance

Shouldn't options.pda be options.pad ?

If that's the case, i suspect same bug/typpo will repeat fro other Hash classes

commented

Yeah, looks like it's a typo. Will fix asap.

commented

Fixed in v1.0.6. Thanks for reporting.