"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pea_utils.pas" between
peazip-7.7.0.src.zip and peazip-7.7.1.src.zip

About: PeaZip is an OS-portable graphical file archiver, acting as frontend for various open source archiving utilities (incl. its native Pea archive format).

pea_utils.pas  (peazip-7.7.0.src):pea_utils.pas  (peazip-7.7.1.src)
skipping to change at line 2108 skipping to change at line 2108
end; end;
end; end;
except except
read_filelist:=FILELIST_NOT_ACCESSIBLE; read_filelist:=FILELIST_NOT_ACCESSIBLE;
exit; exit;
end; end;
read_filelist:=SUCCESS; read_filelist:=SUCCESS;
end; end;
function pw4cl(sw:ansistring; var pw:ansistring):integer; function pw4cl(sw:ansistring; var pw:ansistring):integer;
var
cdelim:utf8string;
begin begin
pw4cl:=-1; pw4cl:=-1;
{$IFDEF MSWINDOWS} cdelim:=correctdelimiter(sw+pw);//Windows = ", Linux and others = ' unless ' is
if pos('"', pw)<>0 then exit; found in the string, in this case swap to "
pw:='"'+sw+pw+'"'; if pos(cdelim, sw+pw)<>0 then exit;
{$ELSE} //all other systems are treated like *x like; correct it with suitable v pw:=cdelim+sw+pw+cdelim;
alues to port to non-Unix systems
if pos('''', pw)<>0 then exit;
pw:=''''+sw+pw+'''';
{$ENDIF}
pw4cl:=0; pw4cl:=0;
end; end;
procedure evaluate_password ( pw: ansistring; //password procedure evaluate_password ( pw: ansistring; //password
var pw_strength:dword); //entropy bits evaluation var pw_strength:dword); //entropy bits evaluation
{ {
Password strength is expressed as raw exteemed entropy entered by the keyboard, Password strength is expressed as raw exteemed entropy entered by the keyboard,
1 points for each entropy bit. 1 points for each entropy bit.
Please note that the unit doesn't perform a quality check on the password using Please note that the unit doesn't perform a quality check on the password using
dictionaries, but try to implement simple checks or composition best practices: dictionaries, but try to implement simple checks or composition best practices:
 End of changes. 2 change blocks. 
8 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)