You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

741 B

Hash File

Instructions

Create a function hashFile(file) that given the name of a file in the current folder, expected to be a string, returns the hash sha256 of the content of this file as a string.

Usage

textfile.txt

Sometimes science is more art than science.
let hash = hashFile("textfile.txt")
console.log(hash) 
// expected result : 575e6ccc6aa3882344d97a8ebae4b7fc4852f9149ad14007d11164450f751eb1

Notions