Products Downloads


French version


 

 

This function decrypts a string using the DES cryptographic algorithm.

 

Context

  • Windows client,

  • Windows server,

  • Adelia Web client,

  • Java client,

  • Java server,

  • Adelia Cloud client.

 

Parameters

ALPHA(n)

Key

Encryption key.

ALPHA(n)

InputString

String to be decrypted.
The length of this string's value must be a multiple of 16.

ALPHA(n)

OutputString

String containing the input string's decrypted value.
The value of n must obey the following rule:

n >= InputStringValueLength DIV 2
Where:

InputStringValueLength is the length of the value of InputString, and DIV is the integer division operator.

NUM_BIN_4

OutputStringLength

Length of the output string definition: corresponds to the n in ALPHA(n) in the OutputString definition.

NUM_BIN_4

ReturnCode

Return code for the operation:

0 : Operation completed successfully.

1 : The key is not eight characters long. (obsolete)

2 : The length set in the output string definition is inadequate.

3 : The length of the input string's value is not a multiple of 16.

 

Example

ALPHA(8) key

ALPHA(32) EncryptedPassword

ALPHA(16) DecryptedPassword

NUM_BUN_4 DecryptedLength

NUM_BIN_4 ReturnCode

Key  = 'Abc123xZ'

EncryptedPassword = '7B7A92E45BBD5130FCFBCF6D103B3431'

DecryptedLength = 16

 

CALL_DLL 'VATOOLBX.DLL' 'VaToolBxDecryptString' Key EncryptedPassword DecryptedPassword DecryptedLength ReturnCode

 

* The function returns the value '1234567890' in DecryptedPassword

 

List of the VaToolBx functions by topic

 

 

↑ Top of page


  • Aucune étiquette