FileKeys regeneration #1270
-
|
Is possible from UI regenerate (invalidate) filekeys for particular file / folder / all? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
no; Filekeys are a sha512 hash of salt + filesystem path + file size + inode number. All of these values (except for salt) are provided by the filesystem, so the filekey cannot be changed for a single file, unless you delete and recreate the file (which gives it a new inode number). The salt is randomly generated the first time you launch copyparty and is written to |
Beta Was this translation helpful? Give feedback.
no;
Filekeys are a sha512 hash of salt + filesystem path + file size + inode number. All of these values (except for salt) are provided by the filesystem, so the filekey cannot be changed for a single file, unless you delete and recreate the file (which gives it a new inode number).
The salt is randomly generated the first time you launch copyparty and is written to
~/.config/copyparty/fk-salt.txtbut can be overridden with --fk-salt. Changing the salt will change all keys.