Name: Anonymous 2008-12-25 4:12
i'm encrypting text:
'abcd'
when i rotate it through9text converted to integers):
function rl(n,s) {return ( n<<s ) | (n>>>(32-s))}
i can't get my text back with:
function rr(n,s) {return n>>(s)|(n>>>(32-s))}
because negative numbers don't rotate right:
-853593885=rl(-213398472,2)
rr(-853593885,2)=-213398469
the workaround code at http://dis.4chan.org/read/prog/1229976705/1-
doesn't works at all and is 100x slower .
'abcd'
when i rotate it through9text converted to integers):
function rl(n,s) {return ( n<<s ) | (n>>>(32-s))}
i can't get my text back with:
function rr(n,s) {return n>>(s)|(n>>>(32-s))}
because negative numbers don't rotate right:
-853593885=rl(-213398472,2)
rr(-853593885,2)=-213398469
the workaround code at http://dis.4chan.org/read/prog/1229976705/1-
doesn't works at all and is 100x slower .