Tell me. I need to check the integrity of the files that I will send to the client (JavaEE) - JS files, for example. When any request from the client to the server occurs, the hash of the js files on the client side will be taken and transmitted in the request. How do I get the server-side hash of the given file and how to get it with the help of JS on the client side?

  • github.com/Caligatio/jsSHA - implementation of sha hashes in javascript. And I did not understand that you have a client? java applet? jsp? pure js? - Duck Learns to Take Cover
  • There is still such a thing, but browser support is very small: caniuse.com/#search=integrity - Duck Learns to Take Cover
  • @ru_volt Client - JSP (+ HTML) + JS + CSS Server - JSP + Servlet + Filters + MySql - Tsyklop
  • It’s useless ... - Qwertiy
  • @Qwertiy useless what? - Tsyklop

0