Jump to content

Need Help To Encode String In Xsl


sachinw
 Share

Recommended Posts

Hi,Can someone please help me to encode string in XSL.You can also suggest me any pointers on the same.I searched on net but dint get concrete way to encode string.Actually I want to generate password at XSLT level.The input xml has password element which will hold password in string, after applying XSLT it will encode that string and will send it for further processing.Thanks,Sachin.

Link to comment
Share on other sites

Hi Martin,Thanks for your reply.The requirement is I want to encrypt the string (plain text password) using XSLT and then will decrypt it at server.So if my password is - abcusing XSLT, I want to encrypt it as - @fdf34%# (using some key)and on server, I will decrypt above encrypted string to - abcPlease let me know if it possible.

I am afraid "encode string" is not a very precise description of what you want to achieve. XPath 2.0 has a function encode-for-URI. Whether that is the kind of encoding you want I doubt but you haven't told us any details.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...