« first day (5026 days earlier)      last day (138 days later) » 

00:58
        var tiny        = {};
        tiny.encrypt    = (message,key)=>btoa([...message].reduce((a,c,i)=>a+tiny.xor(c,key,i),''));
        tiny.decrypt    = (encrypted,key)=>[...atob(encrypted)].reduce((a,e,i)=>a+tiny.xor(e,key,i),'');
        tiny.code       = (v,i)=>(i!==undefined && (v=v[i]),v.charCodeAt(0));
        tiny.char       = v=>String.fromCharCode(v);
        tiny.xor        = (c,key,i)=>tiny.char(tiny.code(c)^tiny.code(key,i%key.length));

        var encrypted   = tiny.encrypt('helloworld','sky')
 
16 hours later…
16:56
@matt that's real? is that posted anywhere?
17:14
@1.21gigawatts, what do you mean sorry?
18:11
thats a working encryption and decryption library?
it works yes, its very simple, its not posted anywhere, just xor'ing values is a well known method of encrypting, it still requires considerable work to decrypt it, even knowing how it does it
18:25
        //var dh=diffie_hellman(16);

        p=>2299307027,g=>844
        alice=25997,A=>2268330737
        bob=51936,B=>170510822
        shared_secret=435653706

        var encrypted=tiny.encrypt('rise and rise again until lambs become lions',shared_secret);
        console.log(encrypted);
        var decrypted=tiny.decrypt(encrypted,shared_secret);
        console.log(decrypted);

« first day (5026 days earlier)      last day (138 days later) »