jcayzac
jcayzac•8mo ago

Where has std/hash/sha3.ts gone?

Basically what the title says. This was removed from std/ at some point, but I can't find the current location of the module anymore (looking it up on deno.land returns nothing).
4 Replies
Deno AI Helper
Deno AI Helper•8mo ago
I wasn't able to find the answer to your question in the official Deno documentation. It seems that std/hash/sha3.ts may have been removed or relocated in the Deno standard library. If you're looking for SHA-3 hashing functionality and it's no longer available in the Deno standard library, you might consider looking for a third-party module that provides SHA-3 hashing capabilities. You can search for such modules on https://deno.land/x or other Deno module registries. Please note that this advice is not based on the Deno documentation, and I would recommend double-checking the accuracy of this advice and looking for any updates or community discussions that might give you more information on the status of the std/hash/sha3.ts module.
Leokuma
Leokuma•8mo ago
Everything related to crypto was removed around std@0.161.0 in favor of webcrypto. Since webcrypto doesn't have SHA3, you can either keep using the old SHA3 that std had or resort to a third party module
Leokuma
Leokuma•8mo ago
Sorry. It seems like it was readded to std/crypto https://jsr.io/@std/crypto/doc/~/DIGEST_ALGORITHM_NAMES
DIGEST_ALGORITHM_NAMES - @std/crypto - JSR
@std/crypto on JSR: Extensions to the Web Crypto API
jcayzac
jcayzacOP•8mo ago
@Leokuma oh wow, I couldn't find it, thanks a lot! Even has BLAKE3 🎉