How to ScriptControl AddCode() in C#? -


i'm using code in c#:

    msscriptcontrol.scriptcontrol script = new msscriptcontrol.scriptcontrol();     script.language = "javascript";     script.reset();     script.addcode(); // line problem. 

i want using code in rsa.js:

    function creatersakey(id, pw, sessionkey, keyname, evalue, nvalue)     {       var rsa = new rsakey();       rsa.setpublic(evalue, nvalue);        var comval = getlenchar(sessionkey) + sessionkey + getlenchar(id) + id;       return rsa.encrypt(comval + getlenchar(pw) + pw);     } 

would tell me, how write code @ script.addcode. please :)


Comments

Popular posts from this blog

Linux vanilla kernel on QEMU and networking with eth0 -

rdbms - what exactly the undo information lives in oracle? -

clojure - 'get' replacement that throws exception on not found? -