Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
added to JS
On Codewars, Nodejs in used as JS backend, so you can import and use
cryptomodule here, which contains some functions to calculate hashes.thank you
Because JS is not PHP which has a global
md5function. You need to look where to get it from (or implement it yourself).Not a kata issue.
why md5 is not defined in js
Fixed
The tests are unaffected by this change. They're still
Strings.For Scala, I'm receiving f72d46111630adf38fa71936f80e5ec and expected to return 35151.
But MD5 hash for 35151 is 0f72d46111630adf38fa71936f80e5ec (padded to make it 32 characters, or 512 bytes)
I've fixed the issues; the signature is now
fn crack(hash: &str) -> String;.There are some other issues as well to address, such as the fact that the random tests use a hand-rolled generator rather than the rand crate.
This comment is hidden because it contains spoiler information about the solution
Something is wrong in the decription. During the fisrt bits decoding, the second field should be "black" instead of "white", which contradicts the result "0100" below. So is the third field, which should be "white" instead of "black". This confused me a lot when I first try to understand how the QR codes work. Anyway, the kata is great and trains me a lot.
In the Opera browser, I had to switch to bright mode using the switch at the top right corner of the CW window. In dark mode, the dark text was really hard to read.
What does the Format test do? (Using Dart 3.3)
in my translations to the other hash cracking katas (SHA-1, SHA-256), I imported the proper header with an
#includein the initial code. I did the same in my pending translations involving threading, SQLite, and sockets.Loading more items...