Is there any linux command line implementation that works fine for generating sha1 in large files (<2GB)?
I played with 'openssl sha1' and it takes a few minutes to get the sha1 file for a 2GB file: /.
I do not think that the SHA algorithm can be optimized for size, since it works with blocks of fixed size, and the calculation cannot be performed in parallel. It seems that the fastest implementation in a small file will also be the fastest in a large file.
1 , :
sha1sum: 3.92s openssl sha1: 3.48s python hashlib.sha1: 3.22s
, sha1 2
- , . , , "openssl sha1" 20 . - ?
, /. SHA1 Core Duo 2,0 /dev/zero 100 / - , , , .
, ( ).
sha1, , Sha512sum ,
sha1sum - , SHA-1... , , , . 2GB , , : - (
sha1sum
EDIT: ISO-, , - - , , . , , openssl , sha1sum...
Source: https://habr.com/ru/post/1704702/More articles:Can I have a non-mutable IEnumerable <>? - c #Why is the following C code illegal? - cПравильное значение для параметра hWnd BeginPaint? - c++The number of unread messages in Gmail - c #Django Admin SelectMultiple Widget - djangoThe Kernel.loop method requires a "do". A semicolon is not allowed? - syntaxAsp.Net MVC Can't Get .html or .xml 404 Error Files? - jqueryAre threading issues for programmers at the C / C ++ system level significantly different from those faced by Java programmers? - javaWhy doesn't glCopyTexSubImage2D copy my square correctly? - c ++How does Encfs work? - encryptionAll Articles