staticrypt
staticrypt copied to clipboard
Password protect a static HTML page, decrypted in-browser in JS with no dependency. No server logic needed.
## Summary cleanup getRandomAlphanum() ## Fixes Resolves #222 ## Details - Removed unneeded "& 0xff" and related comment. - Removed byteArray variable - Renamed 'parsedInt' to randByte ## Notes for...
## Summary - remove unneeded '& 0xff' and related comment - update variable names - eliminate byteArray variable
## Summary Freshen up the browser version of HexEncoder ## Resolves resolves #220 ## Details - parse() - simplify var names - Minor reformatting - Throw Error() object, not string...
## Proposed HexEncoder parse() and stringify() could be freshened up. - parse() - simplify var names - Minor reformatting - Throw Error() object, not string - stringify() - Pad hex...
## Summary Use Uint8Array to store binary data. This is a major refactor based on number of lines, but low in complexity, most of the changes are almost mechanical. ##...
## Summary Update hmac calculation to avoid making an in-memory copy of the encrypted data. ## Problem The current way of calculating hmac requires making an in-memory copy of the...
## Summary Replace signedMsg buffer with authEncryptionData object with iv, encrypted, and hmac properties. ## Problem or Use Case signedMsg is a buffer built by appending hmac + iv +...
## Summary Minor improvement, matches previous change to use Buffer.toString. ## Problem This is mostly for consistancy. ## Related Issues or Pull Requests Follow-up to #213 I'm working on a...
## Summary Use Uint8Array to represent binary data internally, convert hex strings to Uint8Array input, and convert Uint8Arrays to hex strings on output. ## Proposed Solution Currently the preferred internal...
## Summary Previously, HexEncoder.stringify could throw a "RangeError: Invalid array length" exception when processing large files. To workaround this, on Node, HexEncoder.stringify now uses Buffer.toString('hex'). ## Fixes Fixes #213 ##...