DESCryptX.

DESCryptX is an Active X control that allows you to create encrypted passwords using the Unix crypt algorithm. It’s intended use is for creating user name:password pairs for enabling access to Web pages via an .htaccess file.

 

The Active X control has been tested in Delphi, VB6 and Office 97/2000.

Properties.

Input

This is the string to be encrypted. The string must always be exactly 8 characters long. If it is longer, it will be truncated at 8 characters. If it is shorter, it will be padded with nulls.

Salt

This is a two character string that modifies the crypted output. CIX uses the first two characters of the user name as the Salt.

Output

When the Execute method is called this contains the crypted string.

 

Methods.

Execute

Encrypts the string in the Input property using the string in the Salt property as a “salt”. The encrypted string is returned in the Output property.

 

Returns True on success or False on error.

Known Problems/Limitations.

When the control is added to a VB form, you can initially set the size to anything that you wish, but not resize it afterwards. The control should be created with a fixed size. This problem will be corrected in the next version.

Example Programs.

Two example programs are provided, one written in Delphi and the other in VB6. The Active X control should work with all versions of Vb from version 4 onwards. The Delphi example also contains a compiled EXE, which you can use to test that DESCryptX is installed and registered properly.

Copyright.

You may use and distribute DESCryptX freely. However, the copyright remains with OS Systems Ltd.

Feedback.

Please send any comments or suggestions for improvements to ibarton @ ossystems.co.uk.

Disclaimer.

OS Systems Ltd disclaims all warranties, either express or implied, including, but not limited to implied warranties of merchantability and fitness for a particular purpose, with respect to the product. Should the program prove defective, the purchaser assumes the risk of paying the entire cost of all necessary servicing, repair, or correction and any incidental or consequential damages. In no event will os systems ltd be liable for any damages whatsoever (including without limitation damages for loss of business profits, business interruption, loss of business information and the like) Arising out of the use or the inability To use this product even if OS Systems Ltd has been advised of the possibility of such damages.

 

Use of this product for any period of time constitutes your acceptance of this agreement and subjects you to its contents.