Products Downloads


French version


 

 

This function encrypts a password using the Adelia Runtime algorithm. It is intended for program-based generation of the Runtime's configuration files (MWCLIENT.INI, MWSERVER.INI, etc.).

The corresponding decryption function is not provided.

 

Context

  • Windows client,

  • Windows server,

  • Mobile client,

  • Adelia Web client,

  • Java client,

  • Java server,

  • Adelia Cloud client.

 

Parameters

ALPHA(n)

User

User name.

ALPHA(n)

Password

Password to encrypt.

ALPHA(n)

EncryptedPassword

String containing the encrypted value of the password.

The length of the variable n must obey the following rule:

n >= ((PasswordLen - 1) / 8 + 1) * 16 ) + 2

Where:

PasswordLen is the length of the Password to encrypt.

NUM_BIN_4

EncryptedPasswordLength

Length of the EncryptedPassword string definition.

NUM_BIN_4

ReturnCode

Return code for the operation:

0 : Operation completed successfully.

2 : The length set in the EncryptedPassword definition is inadequate.

 

Example

ALPHA(128) User

ALPHA(128) DecryptedPassword

ALPHA(260) EncryptedPassword

NUM_BIN_4 EncryptedLength

NUM_BIN_4 ReturnCode

 

User  = 'HARDISPS'

DecryptedPassword = 'HARDISPS'

 

CALL_DLL 'VATOOLBX.DLL' 'VaToolBxEncryptString' User DecryptedPassword EncryptedPassword 260 ReturnCode

 

 

List of the VaToolBx functions by topic

 

 

↑ Top of page

  • Aucune étiquette