User Tools

Site Tools


k28:k28.2:k28.2.3:start

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:

0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ./

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.

28.2.3.1 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.

B1
Figure 28.2.3.1.1: DES password generator with random prefix.

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

B2
Figure 28.2.3.1.2: Encryption with a prefix

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

28.2.3.2 Download

Project

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