Add BLAKE2 to checksum methods

Here you can propose new features, make suggestions etc.

Moderators: white, sheep, Hacker, Stefan2

User avatar
Mark0
Junior Member
Junior Member
Posts: 11
Joined: 2004-08-27, 00:16 UTC
Location: Venice, Italy
Contact:

Add BLAKE2 to checksum methods

Post by *Mark0 »

https://blake2.net/
BLAKE2 is a cryptographic hash function faster than MD5, SHA-1, SHA-2, and SHA-3, yet is at least as secure as the latest standard SHA-3. BLAKE2 has been adopted by many projects due to its high speed, security, and simplicity.

BLAKE2 is specified in RFC 7693, and our code and test vectors are available on GitHub, licensed under CC0 (public domain-like). BLAKE2 is also described in the 2015 book The Hash Function BLAKE.
It's used for example by RAR and was recently added to Python 3.6.
I think it would be a useful addition.

Thanks for the attention.
MCorey
Junior Member
Junior Member
Posts: 2
Joined: 2017-04-20, 10:39 UTC

Post by *MCorey »

Upvoting this! Really think it's worth prioritizing. Total Commander's built-in checksums calculator is, probably, the definitive way of creating and verifying checksums interactively. It would be great to see it support the most recent (and probably most advanced in terms of cryptographic security) algorithm, BLAKE2.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 41001
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have never seen any blake2 checksum files. How do they look like? How are they named?
Author of Total Commander
http://www.ghisler.com
MCorey
Junior Member
Junior Member
Posts: 2
Joined: 2017-04-20, 10:39 UTC

Post by *MCorey »

Christian, thanks for your reply!

The BLAKE2 checksums look pretty much like md5 or sha, only longer — 64 or 128-character long hex string representation (256 and 512 bits).
The commandline tool b2sum available on the official website produces output in the same format as usual md5 and sha commandline tools do. For example, this is the output of the commandline tool using BLAKE2sp algorithm (256 bit), which can be used by new versions of WinRAR in RAR5 archives:

Code: Select all

C:\Users\Public\Pictures\Sample Pictures>b2sum -a blake2sp *
77ca1746a69f5a73e729e2885cbffffbeb32e9fb93838d68716d9eadee9fdd5b Chrysanthemum.jpg
00186cf3959f8de1079391078a031a3bf66dd929021ed2363d95391c3dab0af1 Desert.jpg
607c177c53bde764d92574abba3261cad6df3285dcf251b9224d68f54355a5e1 desktop.ini
6bd5304917f27431c341e29ffde3d8394e0ccf0489cf7d702a2cc551c69fe180 Hydrangeas.jpg
f914c6c6e5747327411d264743623a78b3bfb27ca01930e4b394f7783cbbc185 Jellyfish.jpg
04a9605478f8a086bc73aace9660f2dd0c4c8aa7e7b8e70636baff3aad21cd2c Koala.jpg
8922cff5b91bba3e6491a257c4c7076b30b09f3c45c0e0a484e69b53a04e5bec Lighthouse.jpg
9b80753300392b26226959a9cade589d03ef9c0a02d7430d4d3a12c28b7fb41d Penguins.jpg
68b4a50f1c44a4913f3b64a6a20f20522d772cf990bab9ca6326ce7526cc4d18 Sample Pictures.rar
946eafd3112cf6658bf60b3e875bced20a03261c5cb2ca7ca597d115dff147df Tulips.jpg
By the way, BLAKE2 is not a algorithm that appeared just recently — it's been around since December 2012 as a prospective replacement for MD5 and SHA.

I don't know if there is a widely accepted common extension for BLAKE2 files, but ".blake2" seems a reasonable choice, and some hashsum calculator programs actually use it.
Skif_off
Member
Member
Posts: 130
Joined: 2013-09-30, 13:13 UTC

Post by *Skif_off »

2ghisler(Author)
Double Commander support BLAKE2s and BLAKE2sp, with extensions *.blake2s and *.blake2sp.
If it can be useful: r6231, 2015-09-06.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 41001
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks, I will try b2sum.
Author of Total Commander
http://www.ghisler.com
Goblin_NN
Junior Member
Junior Member
Posts: 4
Joined: 2020-10-11, 04:32 UTC
Location: Russia

Re:

Post by *Goblin_NN »

ghisler(Author) wrote: 2017-04-24, 13:05 UTC Thanks, I will try b2sum.
try https://github.com/ BLAKE3-team/BLAKE3
hi5
Senior Member
Senior Member
Posts: 230
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: Add BLAKE2 to checksum methods

Post by *hi5 »

A suggestion: allow the user to add an "external checksum" tool in similar fashion as you can add an "external packer", this will offer greater flexibility to the user and after adding it to TC avoid the need to add new hash functions.
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread. TCSyncComments (copy file comments)
Goblin_NN
Junior Member
Junior Member
Posts: 4
Joined: 2020-10-11, 04:32 UTC
Location: Russia

Re: Add BLAKE2 to checksum methods

Post by *Goblin_NN »

[url=https://github com / BLAKE3-team / BLAKE3]blake3[/url] in version 10 will be?
Axis
Junior Member
Junior Member
Posts: 71
Joined: 2015-07-14, 18:53 UTC

Re: Add BLAKE2 to checksum methods

Post by *Axis »

Goblin_NN wrote: 2021-04-16, 03:44 UTC [url=https://github com / BLAKE3-team / BLAKE3]blake3[/url] in version 10 will be?
I'm hoping too! :?
viewtopic.php?p=398197#p398197
Fla$her
Member
Member
Posts: 123
Joined: 2020-01-18, 04:03 UTC

Re: Add BLAKE2 to checksum methods

Post by *Fla$her »

And what about extremely fast xxHash (not here yet)?
Axis
Junior Member
Junior Member
Posts: 71
Joined: 2015-07-14, 18:53 UTC

Re: Add BLAKE2 to checksum methods

Post by *Axis »

Fla$her wrote: 2021-04-18, 04:12 UTC And what about extremely fast xxHash (not here yet)?
Already requested in the same thread, "Could you add xxHash (xxh3, the fastest hash algorithm)?"

The difference: xxh3 is the fastest non-cryptographic hash algorithm, Blake3 is the fastest cryptographic hash algorithm.
Goblin_NN
Junior Member
Junior Member
Posts: 4
Joined: 2020-10-11, 04:32 UTC
Location: Russia

Re: Add BLAKE2 to checksum methods

Post by *Goblin_NN »

queue.
BLAKE2 - 27 Feb 2017
BLAKE3 - 11 Oct 2020
xxHash - 26 Feb 2021
Fla$her
Member
Member
Posts: 123
Joined: 2020-01-18, 04:03 UTC

Re: Add BLAKE2 to checksum methods

Post by *Fla$her »

Axis wrote: 2021-04-18, 09:03 UTCAlready requested in the same thread
ОК, thanks.
Axis wrote: 2021-04-18, 09:03 UTCBlake3 is the fastest cryptographic hash algorithm.
Discohash: ECRYPT benchmark is 4x faster than BLAKE3
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 41001
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Add BLAKE2 to checksum methods

Post by *ghisler(Author) »

I didn't invdestigate this for long because I found Blake2 very confusing:
- First there are many different variations: BLAKE2b, BLAKE2s, BLAKE2bp, or BLAKE2sp
- Second, it can create hashes between 1 and 64 bytes.
- Third, it's not clear which hash was used by b2sum, so the checker has to be told somehow, otherwise the result will be wrong.
- Fourth, it seems to be already obsolete, superseeded by BLAKE3.

So in conclusion, adding this will cause a lot of confusion and troubles. :(
Author of Total Commander
http://www.ghisler.com
Post Reply