Sync Panes with SHA-256 hash comparison

Features wanted...
Post Reply
Evolve
Posts: 354
Joined: 27 Feb 2020 09:48

Sync Panes with SHA-256 hash comparison

Post by Evolve »

Panes > Sync Select > Select Different
Now it checks different size or modified date
Can you add SHA-256 hash comparison?

admin
Site Admin
Posts: 66347
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Sync Panes with SHA-256 hash comparison

Post by admin »

Select "Overwrite if different contents". It uses SHA-256 hash comparison.

Evolve
Posts: 354
Joined: 27 Feb 2020 09:48

Re: Sync Panes with SHA-256 hash comparison

Post by Evolve »

Where can I find such an option? That's all I've got.

Image

Evolve
Posts: 354
Joined: 27 Feb 2020 09:48

Re: Sync Panes with SHA-256 hash comparison

Post by Evolve »

You're probably talking about Sync Folders and what I'm asking is to add the same hash functionality for Sync Select.

admin
Site Admin
Posts: 66347
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Sync Panes with SHA-256 hash comparison

Post 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".

Evolve
Posts: 354
Joined: 27 Feb 2020 09:48

Re: Sync Panes with SHA-256 hash comparison

Post by Evolve »

Great! Speaking of a speed, is there a way to use a faster hash function?

Image

admin
Site Admin
Posts: 66347
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Sync Panes with SHA-256 hash comparison

Post 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).

Post Reply