PageSourceSearch

http://lintao.gov.cn/jis/ui/lib/security/rsa_util.js

js lintao.gov.cn collected 2026-10-02 17:05:19 UTC 613 bytes, 24 lines download raw bytes

1function RSAencode(str){
2	var pubk = $.cookie('_pubk');
3	var result = '';
4	if(pubk && str){
5		/**
6		pubk = Base64.decode(pubk);
7		var encryptionExponent = '';
8		var modulus = '';
9		if(pubk){
10			encryptionExponent = pubk.split(',')[0];
11			modulus = pubk.split(',')[1];
12		}
13		if(encryptionExponent && modulus){
14			//setMaxDigits(129);
15			var key = RSAUtils.getKeyPair(encryptionExponent, '', modulus);
16			result = RSAUtils.encryptedString(key, str);
17		}
18		*/
19		var encrypt = new JSEncrypt();
20	    encrypt.setPublicKey(pubk);
21	    result = encrypt.encrypt(encodeURI(str));
22	}
23	return result;
24}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.