I am a beginner in HTML and JavaScript. I want to upload an image using HTML5 and get its hash by JavaScript. After that, I want to send the hash value to a PHO server. I uploaded an image with a web browser. But i don't know how i can hash the image. I saw many guides but no one helped me. My HTML code is below. Please fill it and help me.
HTML:
<!DOCTYPE html>
<html>
<body>
<input type="file" id="customerFile" name="Documents"/>
<script>
// Get hash value
// Send it to the server
</script>
</body>
</html>
I should hash it in html level. I shouldn't give the server any file