mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: Algorithm type byte
This commit is contained in:
parent
e583d4608e
commit
a1a4d6231d
1 changed files with 2 additions and 2 deletions
|
|
@ -325,10 +325,10 @@ begin
|
|||
Random(PByte(Randata), RAND_SIZE);
|
||||
Hash:= MD5Buffer(Randata[1], RAND_SIZE);
|
||||
Move(Hash[0], Randata[RAND_SIZE + 1], RAND_SIZE);
|
||||
MasterKeyHash:= '!' + EncodeStrong(MasterKey, Randata);
|
||||
MasterKeyHash:= '!0' + EncodeStrong(MasterKey, Randata);
|
||||
end
|
||||
else begin
|
||||
Randata:= DecodeStrong(MasterKey, Copy(FMasterKeyHash, 2, MaxInt));
|
||||
Randata:= DecodeStrong(MasterKey, Copy(FMasterKeyHash, 3, MaxInt));
|
||||
if Length(Randata) <> (RAND_SIZE * 2) then
|
||||
MasterKeyHash:= EmptyStr
|
||||
else begin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue