The built-in function, ng:encrypt() can be used for encrypting data e.g. a password in InterformNG2. The related workflow component, Set secure workflow variable is normally a better choice for saving passwords.
The ng:encrypt function only has a single parameter, which is the string, that is to be encrypted. The string is encrypted with a key, that is specific to the current installation so it cannot be decrypted on another installation.
The encrypted data can only be decrypted with the built-in function, ng:decrypt(), which is only allowed to be called in some workflow components.
Example:
ng:encrypt('EncryptThis')
Related Articles
ng:decrypt
The built-in function, ng:decrypt is linked with the encryption functions: ng:encrypt and the workflow component, Set secure workflow variable. The function, ng:decrypt() can decrypt contents, that was previously encrypted with these functions. The ...
AES encrypt/decrypt
The advanced utilities workflow component, AES encrypt/decrypt can be used for encrypting and decrypting data in the payload. This can e.g. be used in relation to KSeF 2.0 (mandatory e-invoicing Poland since Feb/Apr 2026). The component has these ...
ng:minimum
InterformNG2 includes the special built-in XPath function, ng:minimum. This function returns the smallest value of two numeric arguments. The function only accepts two numeric arguments - no more and no less. Examples: ng:minimum(-14,2) returns: -14 ...
ng:base64
The built-in function, ng:base64() converts a string (text) into a base64 based string. This can e.g. be used, if you want to insert any kind of data into an XML node, without substituting any characters, that are not allowed. This function is ...
ng:spaceConcat
The built-in function, ng:spaceConcat(), helps concatenate two strings with a space character automatically inserted between them. Here is an example: This XPath expression: ng:spaceConcat('First name:', 'Jon') outputs this string: First name: Jon ...