File Hashing (SHA-256)
Compute SHA-256 hashes using the Web Crypto API for stronger integrity checks.
(function() {
var logEl = document.getElementById('log');
function log(m) { var d = document.createElement('div'); d.className='pkg-log-entry'; d.textContent=m; logEl.appendChild(d); logEl.scrollTop=logEl.scrollHeight; }
new MultipleUpload('#demo', {
uploadUrl: '/api/upload',
multiple: true,
computeHash: true,
hashAlgorithm: 'sha256',
onHashComputed: function(task, hash) {
log(task.fileName + ' SHA-256: ' + hash);
}
});
})();