Javascript:
function sha1_file ( str_filename ) { // Calculate the sha1 hash of a file
//
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
return sha1(file_get_contents(str_filename));
}
Примеры:
sha1_file('http://kevin.vanzonneveld.net/pj_test_supportfile_1.htm');
'40bd001563085fc35165329ea1ff5c5ecbdbbeef'
|
|
|
|