You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, attempting to run the following example throws an error:
importcryptofrom'node:crypto';import{Buffer}from'node:buffer';// Hashing a string and return the result as a hex-encoded string.conststring='Node.js';// 10b3493287f831e81a438811a1ffba01f8cec4b7console.log(crypto.hash('sha1',string));
~/Desktop => deno crypto-hash.tserror: Uncaught (in promise) TypeError: crypto.hash is not a functionconsole.log(crypto.hash('sha1', string)); ^ at file:///.../Desktop/crypto-hash.ts:7:20
Documented features should be supported or removed from the documentation until actually implemented.