i want to use a javascript to md5 a given string in my jsp page
how can i include the javascript and call the function in the javascript to manipulate the variables
And then I do a view source and I can see exactly what is getting hashed and how. Not only that, but MD5 isn't really a trusted hash anymore these days.
the jsp is executed on the server while the js code is executed by the browser on the client, so you can't store it.
You can always run a method on the server:
For javascript you'll have to modify the link that goes on the server. If you have
Now when you will click the second link you will modify the first one (it contains a parameter named "md5" with the desired value).
Anyone can see your js function code, so be careful.
I don't know what you really want but i hope this example will help you.
Curse your sudden but inevitable betrayal! And this tiny ad too!
a bit of art, as a gift, that will fit in a stocking