im using PidCrypt javascript libraryi want to generate a public key from asp.net so i can use it from client side jsmy code is:\[code\]var public_key = '<%=pub_()%>';var params = certParser(public_key);var key = pidCryptUtil.decodeBase64(params.b64);// new RSA instance var rsa = new pidCrypt.RSA;/* RSA encryption * get the modulus and exponent from certificate (ASN1 parsing) * pem(Array of Bytes) */// ASN1 parsingvar asn = pidCrypt.ASN1.decode(pidCryptUtil.toByteArray(key));var tree = asn.toHexTree();// setting the public key for encryption with retrieved ASN.1 tree rsa.setPublicKeyFromASN(tree);/*** encrypt */var crypted = rsa.encrypt("plaintext");\[/code\]