Obtaining the Open Password

This function returns the open password from an encrypted password, obtained in the LeSenhaInterativo or LeSenhaDireto routines and the Security Key obtained in the ObtemChaveSeguranca routine.

int ObtemSenha (OpenKey, SecurityKey, CryptoPassword, OpenPassword, MaxMaxOpenPassword)

ASCII interface

ObtemSenhaA (Result, OpenKey, SecurityKey, CryptoPassword, OpenPassword, OpenPasswordMaxSize);
ParameterTypeStandard InterfaceASCII InterfaceDescription
ResultOutput, by valueNot usedFixed 6Contains the result of the response to the routine call.
KeyOpeningEntry, by valuechar*32Opening secret key provided by Software Express, which allows open password capture.
Security KeyEntry, by valuechar*64Security key used to capture the password.
PasswordCryptEntry, by valuechar*Variable where the open password is returned
SizeMaxOpenPasswordEntry, by valuechar*6Maximum size of the buffer where the open password is returned.

The routine returns a non-zero value on error, or zero (0) on success.

If successful, the OpenPassword parameter will contain the value of the password collected on the pinpad.