Replace cryptonite with cryptohash-sha1#1090
Conversation
|
@lorenzo Are you still looking at this repo? The last release is also some time ago so wonder if we should be moving on from this tool. |
|
I think that @m-ildefons also helps maintain this repository. |
|
Thanks for the PR. I recently tried to cross-compile Hadolint into Javascript with the end-goal of updating the online linter eventually. While doing that I ran into issues compiling Unfortunately, I think you need to fix up the formatter, because the fingerprints now contain escaped With your change: Without your change: The problem is probably line 73 Could you please fix this? |
|
Thanks @m-ildefons - I completely missed those extra quotes. I have updated to unpack to a string and looks like they're fixed |
|
LGTM. Thanks for the contribution. |
What I did
Replaced usage of deprecated
cryptonitelibrary with cryptohash-sha1. The primary motivation for this is Wasm compatibility for #873, and I could verify the new library does compile fine with Wasm. Another motivation is thatcyrptoniteis deprecated and uses quite legacy libraries such asbasement.Fixes #873
How I did it
Replaced fingerprint generation in
Codeclimateto use cryptohash, as well as base16-bytestring as it recommends for generating a hex digest.How to verify it
As far as I know there aren't unit tests for the formatter. I checked this command produces the same output before and after the change