Cudos to Markus Weiss-Ehlers for helping to find the solution.
Situation:
Using the new request parameters for Orders (PWO) the requestor shall be asked for input which shall be stored encrypted.
Solution:
Using the Value Validation Script
Dim pw As String = CStr(Value) 'only encrypt if not yet encrypted If Not pw.StartsWith("[C]") AndAlso Not pw.EndsWith("=[C]") Then Value = Session.Encryption.Encrypt(CStr(Value)) End If
It does not look that nice in the WebUI after the value is encrypted but it fulfills the purpose.