Clan x86

Member Forums => iago's forum => Topic started by: iago on May 04, 2005, 11:25:46 pm

Title: My signature
Post by: iago on May 04, 2005, 11:25:46 pm
Has anybody (without using a ROT13 converter) actually bothered to figure out what my signature means? I'm getting tired of it, but I want somebody to decode it first :(
Title: Re: My signature
Post by: Quik on May 04, 2005, 11:47:42 pm
I tried, but gave up after a bit.
Title: Re: My signature
Post by: rabbit on May 04, 2005, 11:56:39 pm
Awesome.  It's simple character replacement, one I figured that out I just cracked some of the smaller words until I got a full conversion going. :)
Title: Re: My signature
Post by: Quik on May 05, 2005, 12:08:36 am
I got it now. Damn, you're an asshole iago.
Title: Re: My signature
Post by: Towelie on May 05, 2005, 12:09:32 am
I agree with the jew. :-P
Title: Re: My signature
Post by: iago on May 05, 2005, 08:25:39 am
Haha, I love you all :)
Title: Re: My signature
Post by: rabbit on May 05, 2005, 12:28:15 pm
It didn't take too long to figure out, only about 5-6 mins.
Title: Re: My signature
Post by: Mythix on May 06, 2005, 07:44:02 am
I agree with the jew. :-P

Repent now!


I can't view signatures, so I'd say.. Yes I cracked it like an eggshell hitting the skillet.
Title: Re: My signature
Post by: deadly7 on May 06, 2005, 06:28:54 pm
Someone tell me, I'm too lazy to make something to decodeded it.
Title: Re: My signature
Post by: Blaze on May 06, 2005, 07:20:01 pm
I knew what it was the first time I looked at it. ROT-13 is what me and my friends use for passing notes in class. Look at my signature too.
Title: Re: My signature
Post by: Joe on May 06, 2005, 07:32:36 pm
ROT-13 for passing notes in class? I just use leetspeak. ROT-25 is easier to figure out, but equally hard to understand at first sight.

EDIT:
Code: [Select]
joe@Pie:~$ rot13
Pbatenghyngvbaf, V whfg jnfgrq frireny frpbaqf (be zvahgrf) bs lbhe gvzr.  Ohg qba'g gryy nalobql, yrg gurz jnfgr gurve gvzr!
Congratulations, I just wasted several seconds (or minutes) of your time.  But don't tell anybody, let them waste their time!

EDIT2: Look what I made for you!
Code: [Select]
'---------------------------------------------------------------------------------------
' Module    : modROT13
' Author    : Joe[x86]
' Purpose   : Conduct ROT13 encoding on messages.
'---------------------------------------------------------------------------------------

Private Const Ualphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
Private Const Lalphabet = "abcdefghijklmnopqrstuvwxzy"

'---------------------------------------------------------------------------------------
' Procedure : ROT13
' Author    : Joe[x86]
' Purpose   : Do the actual encoding.
'---------------------------------------------------------------------------------------

Public Function ROT13(s) As String
    'On Error GoTo Hell
    Dim Ret As String, i As Integer
    For i = 1 To Len(s)
        If InStr(1, Ualphabet, UCase(Mid(s, i, 1))) Then
            If GetCase(Mid(s, i, 1)) Then
                'Position = InStr(1, Ualphabet, Mid(s, i, 1))
                Position = IIf(InStr(1, Lalphabet, Mid(s, i, 1)) + 13 > 26, InStr(1, Lalphabet, Mid(s, i, 1)) + 13 - 26, InStr(1, Lalphabet, Mid(s, i, 1)) + 13)
                Ret = Ret & Mid(Ualphabet, Position, 1)
            Else
                'Position = InStr(1, Lalphabet, Mid(s, i, 1))
                Position = IIf(InStr(1, Lalphabet, Mid(s, i, 1)) + 13 > 26, InStr(1, Lalphabet, Mid(s, i, 1)) + 13 - 26, InStr(1, Lalphabet, Mid(s, i, 1)) + 13)
                Ret = Ret & Mid(Lalphabet, Position, 1)
            End If
        Else
            Ret = Ret & Mid(s, i, 1)
        End If
    Next i
   
    ROT13 = Ret

    Exit Function
'Hell:
    'Call MsgBox("Error " & Err.Number & " (" & Err.Description & ") in procedure ROT13 of Module modROT13")
End Function

'---------------------------------------------------------------------------------------
' Procedure : GetCase
' Author    : Joe[x86]
' Purpose   : Returns wether the letter is uppercase or not as a boolean.
'---------------------------------------------------------------------------------------

Public Function GetCase(s) As Boolean
    On Error GoTo Hell

    If LCase(s) = s Then
        GetCase = False
    Else
        GetCase = True
    End If
   
    Exit Function
Hell:
    Call MsgBox("Error " & Err.Number & " (" & Err.Description & ") in procedure GetCase of Module modROT13")
End Function
Title: Re: My signature
Post by: rabbit on May 06, 2005, 08:48:21 pm
Go PHP!!
Code: [Select]
<?php

function 
decrot13($str)
{
$arr1 = array('A''B''C''D''E''F''G''H''I''J''K''L''M'
                               
'N''O''P''Q''R''S''T''U''V''W''X''Y''Z'
                               
'a''b''c''d''e''f''g''h''i''j''k''l''m'
                               
'n''o''p''q''r''s''t''u''v''w''x''y''z');

$arr2 = array('N''O''P''Q''R''S''T''U''V''W''X''Y''Z',
                               
'A''B''C''D''E''F''G''H''I''J''K''L''M',
                               
'n''o''p''q''r''s''t''u''v''w''x''y''z',
                               
'a''b''c''d''e''f''g''h''i''j''k''l''m');

return str_replace($arr1$arr2$str);
}

function encrot13($str)
{
$arr1 = array('N''O''P''Q''R''S''T''U''V''W''X''Y''Z',
                               
'A''B''C''D''E''F''G''H''I''J''K''L''M',
                               
'n''o''p''q''r''s''t''u''v''w''x''y''z',
                               
'a''b''c''d''e''f''g''h''i''j''k''l''m');

$arr2 = array('A''B''C''D''E''F''G''H''I''J''K''L''M'
                               
'N''O''P''Q''R''S''T''U''V''W''X''Y''Z'
                               
'a''b''c''d''e''f''g''h''i''j''k''l''m'
                               
'n''o''p''q''r''s''t''u''v''w''x''y''z');

return str_replace($arr1$arr2$str);
}

?>
Title: Re: My signature
Post by: iago on May 07, 2005, 03:08:47 am
Jesus your languages suck!

C (normal)
Quote
int main ()
{
  register char byte, cap;
  for(;read (0, &byte, 1);)
    {
      cap = byte & 32;
      byte &= ~cap;
      byte = ((byte >= 'A') && (byte <= 'Z') ? ((byte - 'A' + 13) % 26 + 'A') :
byte) | cap;
      write (1, &byte, 1);
    }
}

C (fast):
Quote
char
table[]={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,
27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53
,54,55,56,57,58,59,60,61,62,63,64,78,79,80,81,82,83,84,85,86,87,88,89,90,65,66,6
7,68,69,70,71,72,73,74,75,76,77,91,92,93,94,95,96,110,111,112,113,114,115,116,11
7,118,119,120,121,122,97,98,99,100,101,102,103,104,105,106,107,108,109,123,124,1
25,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,1
45,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,1
65,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,1
85,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,2
05,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,2
25,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,2
45,246,247,248,249,250,251,252,253,254,255};

int main() {
   register char c;
   
   while(read(0,&c,1)){
        write(1,&table[c],1);
   }
}

C (evil):
Quote
main(a){while(a=~getchar())putchar(~a-1/(~(a|32)/13*2-11)*13);}

Perl (normal):
Quote
#!/usr/bin/perl -p
y/A-Za-z/N-ZA-Mn-za-m/;

Perl (fast):
Quote
#!/usr/bin/perl
foreach ('a'..'m', 'A'..'M') {
    $q = chr(ord($_)+13);
    $p{$_} = $q; $p{$q} = $_;
}
while (<>) { s#(.)#$p{$1}#g; print; }

Perl (evil):
Quote
#!/usr/bin/perl -p
BEGIN { @a = split //, "/-35753=?=357"x2; }
s.([a-zA-Z]).ord $1<97?uc($1^$a[ord($1)-65]):lc($1^$a[ord($1)-97]).ge;

Assembly (ugly):
Quote
.file "rot13.S"
.section    .rodata
    .align 4
table:                          /* static lookup table */
    .byte
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,
30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56
,57,58,59,60,61,62,63,64,78,79,80,81,82,83,84,85,86,87,88,89,90,65,66,67,68,69,7
0,71,72,73,74,75,76,77,91,92,93,94,95,96,110,111,112,113,114,115,116,117,118,119
,120,121,122,97,98,99,100,101,102,103,104,105,106,107,108,109,123,124,125,126,12
7,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,14
7,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,16
7,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,18
7,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,20
7,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,22
7,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,24
7,248,249,250,251,252,253,254,255
.text
    .align 4
.globl rot13
    .type rot13,@function
rot13:
    movl 4(%esp), %eax
    xorl %ebx, %ebx
L1: movb (%eax), %dl            /* slurp not-so-loudly */
    orb %dl, %dl
    jz L2
    movb %dl, %bl
    movb table(%ebx), %dl
    movb %dl, (%eax)
    incl %eax
    jmp L1
L2: xorb %dl, %dl
    movb (%eax), %dl
    ret
.Lfe1:
    .size rot13,.Lfe1-rot13

Java (ugly):
Quote
public class rot13 {
  public static void main (String args[]) throws Exception {
    int abyte = 0;
    while((abyte = System.in.read())>=0) {
      int cap = abyte & 32;
      abyte &= ~cap;
      abyte = ((abyte >= 'A') && (abyte <= 'Z') ? ((abyte - 'A' + 13) % 26 + 'A'
) : abyte) | cap;
      System.out.print(String.valueOf((char)abyte));
    }
    System.out.flush();
  }
}

For every language you could imagine,
http://www.miranda.org/~jkominek/rot13/
Title: Re: My signature
Post by: rabbit on May 07, 2005, 05:04:35 pm
No Visual BASIC, only REAL and Quick :P
Title: Re: My signature
Post by: iago on May 07, 2005, 05:57:36 pm
I think the syntax would be the same, isn't it?

But VB isn't a real language anyway, it doesn't count :)
Title: Re: My signature
Post by: rabbit on May 07, 2005, 07:27:26 pm
Q, REAL, and Visual are all based off of BASIC, but are different.
Title: Re: My signature
Post by: iago on May 07, 2005, 07:36:32 pm
Qbasic was just an interpreter program for Basic.  But I don't know about the others.

Also, I remember that VB and Basic are the same for doing things like this.
Title: Re: My signature
Post by: rabbit on May 07, 2005, 07:41:28 pm
Pah.  Q isn't just an interpreter, it has some of its own features.
Title: Re: My signature
Post by: RoMi on May 07, 2005, 08:48:26 pm
What about good old TI-BASIC :).
Title: Re: My signature
Post by: rabbit on May 07, 2005, 10:34:30 pm
It's not actually BASIC.
Title: Re: My signature
Post by: Joe on May 18, 2005, 11:31:22 pm
! I'm heart broken Wabbit.
Title: Re: My signature
Post by: Quik on May 19, 2005, 12:48:03 am
It's z80.
Title: Re: My signature
Post by: RoMi on May 19, 2005, 06:07:38 am
z80 is what you code on your computer and send to your calculator.  TI-BASIC is what you code on your calculator.
Title: Re: My signature
Post by: rabbit on May 19, 2005, 01:17:23 pm
TI-BASIC is z80, not a BASIC derivant.
Title: Re: My signature
Post by: RoMi on May 19, 2005, 05:01:10 pm
No Rabbit, read this page http://www.ticalc.org/programming/columns/ and you will see the z80 and TI-BASIC are different.
Title: Re: My signature
Post by: rabbit on May 19, 2005, 07:45:54 pm
Either way, Joe's a biter.
Title: Re: My signature
Post by: Joe on May 22, 2005, 01:12:15 am
z80 is ASM.

Example:
mov eax, 1
xor eax, eax


TI-BASIC is a BASIC knockoff

Example:
DispGraph()
Print 1+1
Title: Re: My signature
Post by: rabbit on May 22, 2005, 10:22:23 am
You're still a biter.  Don't make your entire sig into ROTx because you found out how to en/decrypt it.  You're a biter, plain and simple.
Title: Re: My signature
Post by: Sidoh on May 22, 2005, 12:07:36 pm
It's encode! :)
Title: Re: My signature
Post by: iago on May 22, 2005, 01:03:09 pm
I think Xor'ing stuff counts as encryption because it needs a key :)
Title: Re: My signature
Post by: Sidoh on May 22, 2005, 02:14:52 pm
Rot is just character replacement isn't it? :\
Title: Re: My signature
Post by: iago on May 22, 2005, 02:33:40 pm
Yes, you rotate each character
Title: Re: My signature
Post by: Sidoh on May 22, 2005, 02:40:36 pm
Yes, you rotate each character

*laugh*

I see. How does it need a key if it's a static rotation?
Title: Re: My signature
Post by: trust on May 22, 2005, 02:52:51 pm
Congratulations iago, you just wasted several seconds of my time. I haven't told anybody, so they'll probably waste their time too.
Title: Re: My signature
Post by: iago on May 22, 2005, 04:17:11 pm
Yes, you rotate each character

*laugh*

I see. How does it need a key if it's a static rotation?

I meant in general.  In this case the key is 13, and everybody knows that, so it's useless.
Title: Re: My signature
Post by: Sidoh on May 22, 2005, 04:20:45 pm
Yes, you rotate each character

*laugh*

I see. How does it need a key if it's a static rotation?

I meant in general.  In this case the key is 13, and everybody knows that, so it's useless.
Haha.
Title: Re: My signature
Post by: rabbit on May 22, 2005, 05:13:49 pm
It's encode! :)
en·crypt   Audio pronunciation of "encrypt" ( P )  Pronunciation Key  (n-krpt)
tr.v. en·crypt·ed, en·crypt·ing, en·crypts

   1. To put into code or cipher.
   2. Computer Science. To alter (a file, for example) using a secret code so as to be unintelligible to unauthorized parties.


en·code   Audio pronunciation of "encode" ( P )  Pronunciation Key  (n-kd)
tr.v. en·cod·ed, en·cod·ing, en·codes

   1. To put (a message, for example) into code.
   2. Computer Science. To format (electronic data) according to a standard format.
   3. Genetics. To specify the genetic code for (a protein molecule, for example).


They are entirely interchangeable.
Title: Re: My signature
Post by: Sidoh on May 22, 2005, 05:48:39 pm
That's not a pure computer science reference, which is on what terms we're speaking of encode/encrypt.

iago's right, they are NOT interchangeable. Look at these two definitions (provided by yourself):

Encrypt:
Quote
2. Computer Science. To alter (a file, for example) using a secret code so as to be unintelligible to unauthorized parties.

Encode:
Quote
2. Computer Science. To format (electronic data) according to a standard format.

Those are NOT interchangeable. The PURE purpose of encryption is mass distortion of text in order to HIDE the meaning of it from everyone but its meant recipient. Encoding is to put something into a standard format, such as Base64. Encoding is NOT made to hide its contents from readers.
Title: Re: My signature
Post by: iago on May 22, 2005, 08:03:02 pm
That's not a pure computer science reference, which is on what terms we're speaking of encode/encrypt.

iago's right, they are NOT interchangeable. Look at these two definitions (provided by yourself):

Encrypt:
Quote
2. Computer Science. To alter (a file, for example) using a secret code so as to be unintelligible to unauthorized parties.

Encode:
Quote
2. Computer Science. To format (electronic data) according to a standard format.

Those are NOT interchangeable. The PURE purpose of encryption is mass distortion of text in order to HIDE the meaning of it from everyone but its meant recipient. Encoding is to put something into a standard format, such as Base64. Encoding is NOT made to hide its contents from readers.

That's correct.  Rotation encoding has a secret code (in my signature, it's 13), and it perfect fits the definition for encrypt. 

I think that the differences are settled enough that I can make fun of anybody who gets them mixed up. 

All that's left now is to drive into people's heads the difference between DOS and a Command Prompt (cmd) :-)
Title: Re: My signature
Post by: deadly7 on May 22, 2005, 08:53:59 pm
Question: What's the difference between ROT13 and ROT1 for example?
And to decode ROT13 encoding, you set A=26, B=25, C=24.... and so on, right?

Edit:
To clary on the rot13 thing, and then change the number to the actual letter in the alphabet
So something would be

LOL in ROT13

12, 15, 12

LOL in plaintext
Title: Re: My signature
Post by: Blaze on May 22, 2005, 09:45:17 pm
ROT26 > ROT13
Title: Re: My signature
Post by: iago on May 23, 2005, 12:21:00 am
ROT26 > ROT13

"All messages encoded in ROT26" haha
Title: Re: My signature
Post by: rabbit on May 27, 2005, 08:58:40 am
That's not a pure computer science reference, which is on what terms we're speaking of encode/encrypt.

iago's right, they are NOT interchangeable. Look at these two definitions (provided by yourself):

Encrypt:
Quote
2. Computer Science. To alter (a file, for example) using a secret code so as to be unintelligible to unauthorized parties.

Encode:
Quote
2. Computer Science. To format (electronic data) according to a standard format.

Those are NOT interchangeable. The PURE purpose of encryption is mass distortion of text in order to HIDE the meaning of it from everyone but its meant recipient. Encoding is to put something into a standard format, such as Base64. Encoding is NOT made to hide its contents from readers.

That's correct.  Rotation encoding has a secret code (in my signature, it's 13), and it perfect fits the definition for encrypt. 

I think that the differences are settled enough that I can make fun of anybody who gets them mixed up. 

All that's left now is to drive into people's heads the difference between DOS and a Command Prompt (cmd) :-)
ROT13 is a standard format as well, because you are moving EVERY initial value by 13, and your signature is also electronic data.