Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

encryption

Name: Anonymous 2008-04-18 11:06

i created a html file which does CBC encryption in javascript and converts the result to hex. What does anon think about encryption? For me it's like safe sex (interesting, but too much of a nuisance to actually practice it).

http://www.2shared.com/file/3163087/1a14b3fa/stream.html


DA5CAE33789E8D00A8E1D2DACDC44A44C58F91369999FE4678769A3F9450
6F16C98212F7270E8201D856C8262417535452FBFC52CDEC977607702853
847CF5040BDA9EAF98C4CE0E54136C5CFC6BBE72541B5003C8F4DFB5BEE6
BB89EB076DA678551B50C1A53F1F6FEA2F7D2298D806F050F738DB281248
7BA2F476EA8169528FAA589C076CB0CF4349CC0FE9DD5EF771FB6A0E5413
CEF67F370D4E3404191BAB68641F2C106FD277BB5CF29CAF66259F16271B
F6A2E3C6846D0F60038D7E01E8EB529D


in b4 sGTFO

Name: Anonymous 2008-04-18 11:13

This would be nice if you could stop acting like a faggot.

Name: Anonymous 2008-04-18 11:17

YHBT
I lol'd heartily.

Name: Anonymous 2008-04-18 11:28

>>2
IM DOING THE BEST I CAN!!!!!!!!!88888888888888888!!!!

Name: Anonymous 2008-04-18 11:36

>>1
That page doesn't load.

Name: Anonymous 2008-04-18 12:06

>>5
Because it's leaking your dataforce.

Name: Anonymous 2008-04-18 12:26

>>1
What does a virgin know about safer sex?

Name: Anonymous 2008-04-18 14:28

<html><head><style>body { color: white; background-color: black; }</style><script type="text/javascript">
N = 624;
M = 397;
MATRIX_A = 0x9908b0df;
UPPER_MASK = 0x80000000;
LOWER_MASK = 0x7fffffff;
var mt = new Array(N);
var mti = N+1;
function unsigned32 (n1) { return n1 < 0 ? (n1 ^ UPPER_MASK) + UPPER_MASK : n1; }
function subtraction32 (n1, n2) { return n1 < n2 ? unsigned32((0x100000000 - (n2 - n1)) & 0xffffffff) : n1 - n2; }
function addition32 (n1, n2) { return unsigned32((n1 + n2) & 0xffffffff) }
function multiplication32 (n1, n2) {
    var sum = 0;
    for (var i = 0; i < 32; ++i){
        if ((n1 >>> i) & 0x1){
            sum = addition32(sum, unsigned32(n2 << i));
        }
    }
    return sum;
}
function init_genrand(s)
{
    mt[0]= unsigned32(s & 0xffffffff);
    for (mti=1; mti<N; mti++) {
        mt[mti] = addition32(multiplication32(1812433253, unsigned32(mt[mti-1] ^ (mt[mti-1] >>> 30))), mti);
        mt[mti] = unsigned32(mt[mti] & 0xffffffff);
    }
}
function init_by_array(init_key, key_length)
{
    var i, j, k;
    init_genrand(19650218);
    i=1; j=0;
    k = (N>key_length ? N : key_length);
    for (; k; k--) {
        mt[i] = addition32(addition32(unsigned32(mt[i] ^ multiplication32(unsigned32(mt[i-1] ^ (mt[i-1] >>> 30)), 1664525)), init_key[j]), j);
        mt[i] = unsigned32(mt[i] & 0xffffffff);
        i++; j++;
        if (i>=N) { mt[0] = mt[N-1]; i=1; }
        if (j>=key_length) j=0;
    }
    for (k=N-1; k; k--) {
        mt[i] = subtraction32(unsigned32((dbg=mt[i]) ^ multiplication32(unsigned32(mt[i-1] ^ (mt[i-1] >>> 30)), 1566083941)), i);
        mt[i] = unsigned32(mt[i] & 0xffffffff);
        i++;
        if (i>=N) { mt[0] = mt[N-1]; i=1; }
    }
    mt[0] = 0x80000000;
}
function genrand_int32()
{
    var y;
    var mag01 = new Array(0x0, MATRIX_A);
    if (mti >= N) {
        var kk;
        if (mti == N+1)
            init_genrand(5489);
        for (kk=0;kk<N-M;kk++) {
            y = unsigned32((mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK));
            mt[kk] = unsigned32(mt[kk+M] ^ (y >>> 1) ^ mag01[y & 0x1]);
        }
        for (;kk<N-1;kk++) {
            y = unsigned32((mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK));
            mt[kk] = unsigned32(mt[kk+(M-N)] ^ (y >>> 1) ^ mag01[y & 0x1]);
        }
        y = unsigned32((mt[N-1]&UPPER_MASK)|(mt[0]&LOWER_MASK));
        mt[N-1] = unsigned32(mt[M-1] ^ (y >>> 1) ^ mag01[y & 0x1]);
        mti = 0;
    }
    y = mt[mti++];
    y = unsigned32(y ^ (y >>> 11));
    y = unsigned32(y ^ ((y << 7) & 0x9d2c5680));
    y = unsigned32(y ^ ((y << 15) & 0xefc60000));
    y = unsigned32(y ^ (y >>> 18));
    return y;
}

function l() {
    pass = document.getElementById("pass").value
    if (pass) { init_by_array(pass,pass.length); return true; }
    else { alert('ENTER PASSWORD FIRST'); return false; }
}
function dec2hex(i) {
    hex = "0123456789ABCDEF"
    r = i % 16;
    s = hex.charAt((i-r)/16) + hex.charAt(r);
    return s;
}
function e() {
    if (l()) {
        iv = Math.floor(Math.random()*256)
        body = document.getElementById("body").value
        result = dec2hex(iv);
        for (i=0;i<body.length;i++) {
            if ((i+1)%30 == 0) result = result + "\n"
            iv = (body.charCodeAt(i)+iv+genrand_int32())%256
            result = result + dec2hex(iv)
        }
        document.getElementById("body").value = result
    }
}
function d() {
    if (l()) {
        r = /[^0-9A-F]/g
        body = document.getElementById("body").value.replace(r,"")
        result = ""
        for(i=1;(i*2)<body.length;i++) {
            s=(parseInt(body.substr(i*2,2),16)-parseInt(body.substr((i-1)*2,2),16)-genrand_int32());
            if (s<0) { s=256-((-s)%256); }
            result = result + String.fromCharCode(s);
        }
        document.getElementById("body").value = result
    }
}
    </script>
  </head>
<body>
<form>
<pre>

CBC style encryption, using the mersenne twister as generator.
feel free to download/edit/share this file with anyone.
   
Password: <input class="inputText" type="password" value="NONAMEFAGS" id="pass">

<textarea id="body" rows="20" cols="65"></textarea>

<input id="encrypt" type="button" value="Encrypt" onclick="e();"> <input id="decrypt" type="button" value="Decrypt" onclick="d();">
</pre>
</form>
</body>
</html>

Name: Anonymous 2008-04-18 16:11

shit, according to wikipedia:

>Unlike Blum Blum Shub, the algorithm in its native form is not suitable for cryptography. Observing a sufficient number of iterates (624 in the case of MT19937) allows one to predict all future iterates. Combining the Mersenne twister's outputs with a hash function solves this problem, but slows down generation.

and

>BBS takes the form:
xn+1 = (xn)2 mod M

>where M=pq is the product of two large primes p and q. At each step of the algorithm, some output is derived from xn; the output is commonly either the bit parity of xn or one or more of the least significant bits of xn.

what would be easier, using BBS or Hashing the mersenne twister?

>The Mersenne Twister algorithm has received some criticism in the computer science field, notably by George Marsaglia. These critics claim that while it is good at generating random numbers, it is not very elegant and is overly complex to implement. Marsaglia has provided several examples of random number generators that are less complex yet provide significantly larger periods. For example, a simple complimentary-multiply-with-carry generator can have a 10^33000 longer period, be significantly faster, and maintain better or equal randomness.

does anybody know how to write a simple complimentary-multiply-with-carry generator in javascript?

Name: Anonymous 2008-04-18 16:23

>>8
Learn to use code tag
>>9
Learn to quote properly
>>10
Read SICP.

Name: Anonymous 2008-04-18 17:18

>>10
You're telling yourself to read SICP. Was this the intent?

Name: Anonymous 2008-04-18 20:04

>>13
Read SICP.

Name: Anonymous 2008-04-18 20:04

Hai guise my name's Eli and I've just finished reading SICP!

Name: Anonymous 2008-04-19 10:13

>>11
maybe he was merely stating that he has read SICP.


BD6AECAC25809247305475B8D401C1DF978F6B35D7B54CC11B3D9266DFD6
25BA9231EDBC0B2B7C3A3AA1109A8F6B95D610EC19B1586450500FAB4197
02FA386CA6B3B2C4ACD0168BC8C950825E0C7B643C34A49042A1BAD20654
303BA30582A7799B76980A10BA99C3152DAC7FD24BA4D222F66745D2E339
5C9F590D5B2B4558B6B04A7BB94FC821CABC7FF90C39ED6F22CC6F2FAA47
3191413CF15A7C3B88C29586B28CD3E77C1DF400E0A773BFA64EE697D80A
BFA81C5E5B22F98832934C022C6002516C51F6F32AC038E441EB770A1A1E
C93A666B3AD0414168248538B1012AEFB9BF4D9082D338B58E3DCBA06EEC
42B7C144474358823004020A4B4852436BCAD73E08B240D263DD7E7A8040
FA4EBA293EF9C07FC5E8084F3106932CB9E3B63FDAF8A629CB7079452B17
67969DA029BD220E209F02E4FA8FB3110E544F62E98101CC9AE80640008B
C15E4A318382B7CFAC1B846D7EAA849011112C91F6077ED8E5DDF6

Name: Anonymous 2008-04-19 10:17

>>14
ED840274FC536F2608703D819BCB8AA40E00DCA7456CFE7885B606D94E4B
9B7556EEB9D72F45EAA2A14DBB

Name: Anonymous 2008-04-19 10:47

>>15

7D31B265EE0424866CE2FE313F622250BAB3D0A14063F564BFE3E4B134DD
3C16A590586CB8D40F687120C15D435C8DC2B09ECB5E14200E189632171E
84E5396D989D9C94B0174DB83B28607E06B228101FE1452C10668C95D2D8
ECEA89DD71DADDA9A102ABBA8899D1239ACD9EF16AC3EE3E16835EE6F453
BDBF6819B68FB47CE92B067C1563E63AE5D791121839EAB55E0C5628A688
1E7A221C1C3C4C5DB5A16F613B246A7911B089F9C954C51600F74BEF4423
280F8AD9D2E4BD4B1D94BC79A4841FA2AEC75C60DD5BCD727B27B259AE6F
0E73DE8C5BE0626FB86AFAED3BA6CBA1573CE94F6DAE7D582BDD75FFB7CC
1C9896CACC02114138070BBAF3E4F63C647B97EDFC9C24A32FEEE3DD909B
9D567ADEEBF46E393AA2D209F68058FB8809881DBBC5CC07A4404914F915
C758605DD92B6091DC4955308D2D4D9BA9FAB2B74BD95B6762A4A5E8A137
2803274BCF03A2150171D7B9DA06DEE76059BD34ADBE2278742775734F8A
7978F7066FA3FCFDC4043D482B8534BC322DC9B030F5DA417192BDEC06E6
D0AC7374701F511C05CCC988E301D1B5E7B05EB49EC45297B283F13472C5
C58F7D5477E78045008187F743B145D6213E8E60E430D2C92814369AB29D
F0FB5E1C0679622A81AA9F1340FF652DFD9C3DF12C6860CF6583F4DFB637
418D48495479A9A7C7D2E67C4EBA2B25DBE4ED9EA5533F6BBF4640271C37
EB6FF3C57232F69B09907EE93D3AE1E81187CDC79A453C837D6DC1993D6E
035EECE94BBDC59356321CCA6D21CE8F3B4143E9EE343B2A9F702058535E
946C9E23

Name: Anonymous 2009-03-06 6:16


In creating a powerful   virus in C   because i think   the compilers are   a black thing.

Name: Trollbot9000 2009-07-01 7:57

-parseint.

Name: Anonymous 2011-02-04 18:05

Name: Sgt.Kabukiman 2012-05-22 10:14

All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy

Name: em 2012-05-22 17:46

All play and no work makes Jack a mere toy.

Don't change these.
Name: Email:
Entire Thread Thread List