My code is like
SJCL.js
function encrypt(data, key){
......
}
abcd.java
public String callJavascript(String data,String key)
{
// i want to call the encrypt method here with data,key value passing to it
}
any help????
using java5 only
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think following articles will help you:
EDIT:
Rhino:
I think reading the documentation will help you to implement this.
There are also some other options: