You need to sign in to do that
Don't have an account?

How to decrypt some value in Apex which is coming as encrypted value from Javascript using btoa function
Hi we are using javascript remoting in visualforce pages. There is a method in javascript that is passing a password in encrypted form using btoa function. Then this data is recieving by one Apex method which is annotated by @remoteAction. But how i can decrypt that password in Apex. Please help in this.
To encrypt some value we have to use some key value that can be hard coded or we can generate key also by using this We have to use same key to decrypt that value.
Here I am going to share some code.Hope it will help you.
write the below code in your apex method. if it help you, please mark it as a best answer !!!
thanks
To decrypt that password in Apex: The complete code is given below:
vf page
controller:
Please let me know if that helps you.
If it helps don't forget to mark this as a best answer!!!