home *** CD-ROM | disk | FTP | other *** search
- program KEYPASS;
-
- uses
-
- crt,
- nwvar,
- nwerror,
- nwbindry;
-
- var
-
- Bindery : BinderyOBJ;
- EncryptKey : TEncryptKey;
- ObjectID : OT_BinderyID;
- Password : TPassword;
-
- begin
-
- Bindery.Init (true);
- ObjectID := $02000001;
- Password := '';
-
- if Bindery.GetEncryptedKey (ObjectID, Password, EncryptKey) <> SUCCESSFUL then
- writeln ('Keyed functions not available')
- else
- begin
-
- if Bindery.KeyedVerifyPassword ('GUEST', OT_User, EncryptKey) = SUCCESSFUL then
- writeln ('Invalid password')
- else
- writeln ('Password verified');
-
- end;
-
- Bindery.Done;
-
- end.
-