Page 1 of 2 12 LastLast
Results 1 to 25 of 35

Thread: String Encryt/Decrypt Script Help

  1. #1
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default String Encryt/Decrypt Script Help

    Hey Guys,
    I have made a scar script that encrypts/decrypts words and/or full sentences and I was wondering would it be crackable or would someone need the original scar code to know how to decrypt it?

    Well its not really 'encryption' it substitutes each individual letter/number for another random letter/number and then stores the letters it needs in a .txt file for decryption later on.

    So would anyone think its crackable?

    This is a string that has been 'encrypted', just to see what it looks like.
    *( KRZDB ESAK BXX )* It has to do with SRL

    Thanks,
    TurboBk.
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

  2. #2
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Everything is possible I would guess that is something like: "hello **** srl" or something, i dunno. Anyways...the decrypthing would take long.
    There used to be something meaningful here.

  3. #3
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Simba owns all
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  4. #4
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    OMFG WTF HOW?

    How did you do that so easily mixster? freakin genius!
    Last edited by turbobk; 04-06-2010 at 12:32 PM.
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

  5. #5
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by turbobk View Post
    OMFG WTF HOW?

    How did you do that so easily mixster? freakin genius!
    Basicly i could make a generator that makes tries to decrypt it and then see from the list which it would be, but it would take long to compile the list. And even longer to read.
    There used to be something meaningful here.

  6. #6
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Damn, lol.
    I've just made it a bit better it encrypts the string then encrypts the encrypted string again twice. So it should be alot harder to crack now lol.

    If mixster or anyone else can figure this out then... WOW!
    *( RU KLF XHD URBFIK YJRQ LFY YJKD R UHRO JHIE )*
    Last edited by turbobk; 04-06-2010 at 12:46 PM.
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

  7. #7
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by turbobk View Post
    Damn, lol.
    I've just made it a bit better it encrypts the string then encrypts the encrypted string again twice. So it should be alot harder to crack now lol.

    If mixster or anyone else can figure this out then... WOW!
    *( RU KLF XHD URBFIK YJRQ LFY YJKD R UHRO JHIE )*
    Does it generate the swap table randomly?
    There used to be something meaningful here.

  8. #8
    Join Date
    Oct 2006
    Posts
    1,071
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by turbobk View Post
    Damn, lol.
    I've just made it a bit better it encrypts the string then encrypts the encrypted string again twice. So it should be alot harder to crack now lol.

    If mixster or anyone else can figure this out then... WOW!
    *( RU KLF XHD URBFIK YJRQ LFY YJKD R UHRO JHIE )*
    YOU DO FAIL HARD


    Dude encrypting it multiple times doesn't do anything because it still points to the same letter Took me about 15 seconds.

  9. #9
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Seriously.. how?!?
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

  10. #10
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    I didn't decipher any but it looks like you are using mono substitution. This can be cracked within seconds, literally.
    http://en.wikipedia.org/wiki/Substitution_cipher

    Code:
    #!/usr/bin/python
    
    from random import random
    from sys import argv
    
    def encrypt(s, a= ''):
        if a == '':
            a = range(ord('A'), ord('Z')+1)
            map(lambda x: chr(x), a)
            a.sort(lambda x, y: 1 if random() > 0.5 else -1)
    
        res = ''
        for c in s:
            res = res + a[ord(c) - ord('A')]
    
        return res
    
    if len(argv) > 1:
    	str = argv[1]
    else:
    	print "Needs moar args"
    	exit(1)
    print encrypt(str, map(lambda x: chr(x), range(ord('Z'), ord('A') - 1, -1)))
    Aside from that, you can easily use dictionary attacks. Long words are mostly very easy, and give away the rest.
    Last edited by Wizzup?; 04-06-2010 at 02:12 PM.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  11. #11
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh s**t! really?
    Wow I fail... I thought it would be alot harder to crack than that! >.<
    How can that code crack it so easily does it look for actual words?
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

  12. #12
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by turbobk View Post
    Oh s**t! really?
    Wow I fail... I thought it would be alot harder to crack than that! >.<
    How can that code crack it so easily does it look for actual words?
    Take for example the word

    "abolitionists" =>
    Code:
    $ ./wordmatch.py 
    ABCDEFECGEHFH
    Code:
    #!/usr/bin/python
    
    def wordRepr(w):
    
        y = {}
        z = ""
        c = 0
        for x in w:
            if y.has_key(x):
                z = z + y[x]
            else:
                y[x] = chr(ord('A') + c)
                z = z + y[x]
                c = c + 1
        return z
    
    
    print wordRepr("ABOLITIONISTS")
    There aren't much words that will also return ABCDEFECGEHFH.
    In fact, in a dictionary of 57046 words, it is the only match.

    Here: http://vila.villavu.com/cgi-bin/gitw....git;a=summary
    This is some very ugly code that I wrote very quickly. It contains the dictionaries + ``canonical'' dictionary. (in wlist/)
    I didn't write any code to find the stuff in there, since I do that all with unix commands. grep, etc.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  13. #13
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh ok! I see what you mean.

    Would it help if I added another 'ciphertext' line which it will switch between the two different lines randomly and then after that rearrange the order of the words / letters?

    Would that make it polygraphic?
    I'm not familiar with this encryption stuff, as you can tell lol.

    Nice work on that code btw
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

  14. #14
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by turbobk View Post
    Oh ok! I see what you mean.

    Would it help if I added another 'ciphertext' line which it will switch between the two different lines randomly and then after that rearrange the order of the words / letters?

    Would that make it polygraphic?
    I'm not familiar with this encryption stuff, as you can tell lol.

    Nice work on that code btw
    It will help a bit, but not too much. It will not really be poly.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  15. #15
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok, I've made it more secure with a second ciphertext line and it now jumbles up the letters, hopefully so a dictionary cant crack it.

    I am hoping this won't be as easily or at all crackable
    But I am sure it will be..
    *( LWERGBD KKJ CTKZPA QFWID MLJQDG DKMNCM BCB LXIOJJCU )*



    Thanks,
    TurboBk.
    Last edited by turbobk; 04-07-2010 at 04:03 AM.
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

  16. #16
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    See if you can figure this out, turbobk:
    596F7520646964206974203B29
    or
    0100011101110010011000010111010001110011
    It's a pretty basic encryption

  17. #17
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    0100011101110010011000010111010001110011
    = grats

    (its obviously binary so ye)

  18. #18
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Quote Originally Posted by turbobk View Post
    Ok, I've made it more secure with a second ciphertext line and it now jumbles up the letters, hopefully so a dictionary cant crack it.

    I am hoping this won't be as easily or at all crackable
    But I am sure it will be..
    *( LWERGBD KKJ CTKZPA QFWID MLJQDG DKMNCM BCB LXIOJJCU )*



    Thanks,
    TurboBk.
    is this backwards? Cant think of a 3 letter word that starts with 2 same letters..

  19. #19
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    See if you can figure this out, turbobk:
    596F7520646964206974203B29
    or
    0100011101110010011000010111010001110011
    It's a pretty basic encryption
    You did it
    Grats


    Sure was..
    Now figure out mine!!
    *( LWERGBD KKJ CTKZPA QFWID MLJQDG DKMNCM BCB LXIOJJCU )*


    Quote Originally Posted by n3ss3s View Post
    is this backwards? Cant think of a 3 letter word that starts with 2 same letters..
    It splits up and rearranges the words, so spaces are not where they should be. :P
    Last edited by turbobk; 04-07-2010 at 02:19 PM.
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

  20. #20
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by turbobk View Post
    You did it
    Grats


    Sure was..
    Now figure out mine!!
    *( LWERGBD KKJ CTKZPA QFWID MLJQDG DKMNCM BCB LXIOJJCU )*




    It splits up and rearranges the words, so spaces are not where they should be. :P
    Splitting up AND rearranging the words makes it rather hard, especially if it is random... And even more with so little text.

    /scratch$ ./s.py
    LWERGBDKKJCTKZPAQFWIDMLJQDGDKMNCMBCBLXIOJJCU
    {'A': 1, 'C': 4, 'B': 3, 'E': 1, 'D': 4, 'G': 2, 'F': 1, 'I': 2, 'H': 0, 'K': 4, 'J': 4, 'M': 3, 'L': 3, 'O': 1, 'N': 1, 'Q': 2, 'P': 1, 'S': 0, 'R': 1, 'U': 1, 'T': 1, 'W': 2, 'V': 0, 'Y': 0, 'X': 1, 'Z': 1}
    I don't have time nor will to do a letter frequency attack, really... There's not a lot of characters.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  21. #21
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Try and decrypt this string, from my own algorithm:
    2282613VXBD413261YDGJ16046BFI664DH26804F

    Here are a few hints:
    Daniel = 6482613TVXZ371261WZPS16946XOR687ZQ27614O
    Merlijn = 6282613NPRT381261QTWZ17206RVY699TX28120V
    Hello World = 3882613OQSU381261RUXN15366SWZ633UY25536W
    Dan's The Man = 2282613RTVX385261UXNQ16846VZP696XO28084Z



    Try and make something like that turbobk, despite the simplicity Look into those types of encryptions as-well, apart from substitution
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  22. #22
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Even made it more secure now.. well hopefully.

    Someone leet please try to crack this, I need to know if someone here can?
    Because if not then 90% of other people won't be able to.

    *( CL LCKMTWJFHJKC EHK DADDOHZ )*

    Thanks,
    TurboBk.
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

  23. #23
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    So I see no one here can crack it!
    W00t!

    Thanks for all your help guys.
    TurboBk.
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

  24. #24
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    No one bothers to crack it.

  25. #25
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by turbobk View Post
    So I see no one here can crack it!
    W00t!

    Thanks for all your help guys.
    TurboBk.
    Write us a 10 word sentence with that.
    There used to be something meaningful here.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •