installation - How to do a dynamic password in Inno Setup? -


i want know how can create password rotate in inno setup?
similar "token"?
or search in sharepoint list?
don't want same.

is possible?

do have other suggestion?

thanks advance!

use checkpassword event function instead of password directive.

[code]  { passwords cache in case retrieval time consuming } var   passwords: array of string;  function checkpassword(password: string): boolean; var   index: integer;   sha1: string; begin   { checkpassword may called before other code (including initializesetup), }   { initialization has happen in function itself. }   if getarraylength(passwords) = 0   begin     log('initializing hashes');     setarraylength(passwords, 5);     passwords[0] := 'df65784979efcda967c88de7098a5a106101064e';     passwords[1] := 'b78baf5db4b1498ed075b8e6accd0b5ff51e20ec';     passwords[2] := 'aaf70585b9a2662c911392b7573c739cecea0e56';     passwords[3] := '3ab4222e2d0000012e6c7381437178fab398e8aa';     passwords[4] := '5473ccc879a8167a6a77b387a916f7c9ca05894f';   end;    index := 0;   sha1 := getsha1ofunicodestring(password);   index := 0 getarraylength(passwords) - 1   begin     if sha1 = passwords[index]     begin       log(format('password matches hash %d', [index]));       result := true;       exit;     end;   end;    log(format('password matches nothing our of %d hashes', [getarraylength(passwords)]));   result := false; end; 

Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -