[#77789] [Ruby trunk Feature#12012] Add Boolean method — prodis@...
Issue #12012 has been updated by Fernando Hamasaki de Amorim.
4 messages
2016/10/27
[ruby-core:77785] Re: [Ruby trunk Feature#12802] Add BLAKE2 support to Digest
From:
RRRoy BBBean <rrroybbbean@...>
Date:
2016-10-27 17:57:49 UTC
List:
ruby-core #77785
I've been using digest-sha3 which requires a gem installation and a require in the code. It's no problem, because the extra hash worth the hassle. These are batch scripts, so maximum efficiency isn't really an issue. I often use digests for representing the contents of picture and video files. For large images and most video files, I usually grab the first 1MB of the file and pass it to the hash. I use the hash to detect and identify incoming duplicates. That 1MB trick isn't guaranteed to work all the time (like with *.ts files). I actually installed the Blake2 gem several weeks ago, but I haven't had time to try it yet. Sorry. It looks really neat. On 10/27/2016 02:10 AM, [email protected] wrote: > Issue #12802 has been updated by Kazuki Yamaguchi. > > > Is there still a supported environment without 64-bit integer support? ext/digest/sha2/sha2.c is already using 64-bit integers. It is compiled only when OpenSSL (or CommonCrypto) is not available, but the current versions of OpenSSL also require uint64_t. > > But, I'm wondering, why not add the SHA-3 winner but only BLAKE2? > > ---------------------------------------- > Feature #12802: Add BLAKE2 support to Digest > https://bugs.ruby-lang.org/issues/12802#change-61078 > > * Author: Tony Arcieri > * Status: Open > * Priority: Normal > * Assignee: > ---------------------------------------- > BLAKE2 is a fast, modern hash function, based on improvements to the BLAKE function, which was a SHA3 finalist. BLAKE2 performs about twice as fast in software as SHA3 winner Keccak: > > https://blake2.net/ > > BLAKE2 has received an informational RFC 7693 from the IETF: > > https://tools.ietf.org/html/rfc7693 > > It was added to the Python standard library in Python 3.6: > > https://docs.python.org/3.6/library/hashlib-blake2.html > > If there's interest in supporting BLAKE2 in the Ruby standard library, I can put together a patch. > > > Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>