i think you can not do in script.
but yes in layout.
Go to Settings > Document Properties > Scrambling
From the help:
#Document Properties: Scrambling
This page is only available when working with a QlikView document in ADMIN mode. It provides the possibility to scramble the data in one or more fields.
This is a list of all fields in the document. Select one or more fields for scrambling.
Press this button to perform a random scrambling of the contents of selected field(s). Numbers are scrambled to numbers and text to text (spaces are kept). Once scrambled, the data cannot be recreated in its original form by QlikTech or anyone else. If you re-execute the script, however, the scrambling will be lost.
hope that helps you.
Scrambling and hash-functions are not an option.
I don't even know if my case is possible or not. But, I will get data from 2 different sources. From source one I will get the id's as they are (for example 1234567890), from another the id's has been crypted by md5-function (1234567890 -> ws3rfwD#d4#)
In the project I should combine the two datasources and for example count the distinct amount of id's.
So (if I understood correctly), if I could do the md5 encrypting in QlikView using the same "keyword" (?) as they have used in another source, I could combine these and do analytics easily.
Sorry about my bad undwerstanding of md5. Totally new thing for me..