User Tools

Site Tools


28.2.3 Crypt.DES

The Crypt.DES function encrypts a password string using the DES algorithm with the following syntax:

Crypt.DES ( Password As String [ , Prefix As String ] ) As String

A prefix can optionally be used which is exactly 2 characters long. The characters are taken from the following character set:


If the prefix is not specified, then a random value is set for the prefix - so a prefix is used in both cases.

Please note that there is no method to decrypt a password string encrypted with the Crypt.DES function. You can only use the method Crypt.Check(..) to check whether or not an entered password - which is internally encrypted according to the algorithm DES - matches an encrypted password stored in the programme or a file. DES Password Generator

The DES password generator presented - which allows you to generate strong passwords - uses the Crypt.DES function, allows you to use a prefix of your choice, checks the prefix and the strength of the password string entered. However, you should note that MD5's encryption algorithm is more solid than DES and should therefore be given preference.

Figure DES password generator with random prefix.

You can also use a prefix. Then there is exactly one encrypted password for this one prefix:

Figure Encryption with a prefix

A complete project on a DES password generator can be found in the download section. Download



The website uses a temporary session cookie. This technically necessary cookie is deleted when the browser is closed. You can find information on cookies in our privacy policy.
k28/k28.2/k28.2.3/start.txt · Last modified: 30.01.2022 (external edit)

Page Tools