Hi Christian,
As usual - fast and accurate response. Worked thanks!
What I guess I was missing is the <CK>{ } </CK> notation (all these little FLOWR tricks I can't seem to find anywhere).
Thanks again, Noam
On Mon, Jun 22, 2015 at 1:52 PM, Christian Grün christian.gruen@gmail.com wrote:
Hi Noam,
The crypto:encrypt function returns the result as a string, so you'll need to wrap it with an additional element:
return <record>{ <CK>{ crypto:encrypt(...) }</CK>, ... }</record>
However, the returned string will contain non-ASCII characters, so it may not be what you expect, so you could possibly encode it as Base64:
convert:string-to-base64( ... )
Hope this helps, Christian