Page 1 of 1

Sync Panes with SHA-256 hash comparison

Posted: 16 Aug 2021 10:50
by Evolve
Panes > Sync Select > Select Different
Now it checks different size or modified date
Can you add SHA-256 hash comparison?

Re: Sync Panes with SHA-256 hash comparison

Posted: 28 Aug 2021 15:51
by admin
Select "Overwrite if different contents". It uses SHA-256 hash comparison.

Re: Sync Panes with SHA-256 hash comparison

Posted: 31 Aug 2021 17:58
by Evolve
Where can I find such an option? That's all I've got.

Image

Re: Sync Panes with SHA-256 hash comparison

Posted: 31 Aug 2021 19:57
by Evolve
You're probably talking about Sync Folders and what I'm asking is to add the same hash functionality for Sync Select.

Re: Sync Panes with SHA-256 hash comparison

Posted: 01 Sep 2021 19:54
by admin
Evolve wrote: 31 Aug 2021 19:57 You're probably talking about Sync Folders and what I'm asking is to add the same hash functionality for Sync Select.
Yep, you got it! :tup: My mistake, I will add that function to Sync Panes later... good idea.

PS: Since content comparison is much slower I will add a new option "Select Different Content".

Re: Sync Panes with SHA-256 hash comparison

Posted: 02 Sep 2021 10:12
by Evolve
Great! Speaking of a speed, is there a way to use a faster hash function?

Image

Re: Sync Panes with SHA-256 hash comparison

Posted: 02 Sep 2021 10:25
by admin
AFAIK Blake is not supported by the Windows API:
https://docs.microsoft.com/en-us/window ... yptography

There are tweaks in XY already now where you can choose SHA-1 or SHA-512:

Code: Select all

v22.00.0004 - 2021-07-02 15:39
    + Added three tweaks to control the hashing method used by the content check 
      in Custom Copy/Move, Backup, and Sync Folder. Each of them 
      factory-defaults to 4 (SHA-256):
        ContentCheck=4          '1=ByteToByte, 2=MD5, 3=SHA-1, 4=SHA-256, 5=SHA-512
        BackupContentCheck=4    '1=ByteToByte, 2=MD5, 3=SHA-1, 4=SHA-256, 5=SHA-512
        SyncContentCheck=4      '1=ByteToByte, 2=MD5, 3=SHA-1, 4=SHA-256, 5=SHA-512
      Any other value than the listed ones will fall back to 4 (SHA-256).