Это мой PHP-код:
Код: Выделить всё
hash_file("sha256", $filePath)
Код: Выделить всё
const hash = crypto.SHA256(crypto.lib.WordArray.create(buffer));
const hexHash = hash.toString(crypto.enc.Hex);
Подробнее здесь: https://stackoverflow.com/questions/790 ... javascript
Мобильная версия