get encrypted password(password a, [servicename b])


Encrypts the password in parameter a by using the Authentication Service given in parameter b. The function takes the password, gives it to the Authentication Service for encryption and returns the encrypted result as the result of the function.

Hint: The Authentication Service uses the algorithm AES-256 and the key (keystore) that was created initially when installing Lobster_data. The same key is used to encrypt and decrypt the passwords and certificates in the Partner Administration. But you do not have to worry about this, you can assume it as a given.

Description of Parameters

Parameter

Description

a

The value to be encrypted.

b

(optional) The name of the Authentication Service. Default: AuthenticationService

Note: For a standard installation of the Lobster_data, there is exactly one Authentication Service, which has the name AuthenticationService. Parameter b can only contain the name of an actually existing Authentication Service, which normally is named AuthenticationService. As long as you do not use an installation that deviates from the standard, you can simply leave parameter b blank.

Examples

Parameter a

Parameter b

Result

hello

83gxAzS47sCmqjLucyPQrw==

Note: The result changes when the function is called repeatedly with the same password a.