PageSourceSearch

https://strg-n.com/assets/js/mailcrypt.js

js strg-n.com collected 2026-09-29 06:05:32 UTC 853 bytes, 41 lines download raw bytes

1/********************************************
2 * MailCrypt
3 * (c) 2010 Dominik Scholz <[email protected]>
4 * visit http://www.go4u.de/mailcrypt.htm
5 ********************************************/
6
7var mailCrypt = {
8
9	link: function(url, text) {
10		document.write("<a href=\"mailto:" + this.decode(url) + "\">" + this.decode(text) + "</a>");
11	},
12	
13	go: function(c) {
14		location.href = "mailto:" + this.decode(c);
15	},
16	
17	decode: function(c) {
18		var l=c.length-1,i=c.charCodeAt(l)-32,o="",p;
19		while(i<l) {
20			p=c.charCodeAt(i)-32;
21			o+=c.charAt(p);
22			i=i<p?p+1:i+1;
23		}
24		return o;
25	},
26	
27	encode: function(v,s) {
28		var e=s,i;
29		for (i=0;i<v.length;i++) {
30			var c=v.charAt(i),p=e.indexOf(c);
31			if (p<0) {
32				e+=String.fromCharCode(e.length+33)+c;
33			} else {
34				e+=String.fromCharCode(p+32);
35			}
36		}
37		e+=String.fromCharCode(s.length+32);
38		return e;
39	}
40
41}

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.