<script src=
"https://cdn.bootcss.com/crypto-js/3.1.9-1/crypto-js.min.js"
></script>
<script>
var
reader =
new
FileReader();
reader.onload =
function
(event){
var
res = event.target.result;
var
sha1 = CryptoJS.SHA1(res).toString();
console.log(sha1);
};
reader.readAsBinaryString(file);
</script>