Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. is there any decryption algorithm that uses a dictionary to decrypt an encrypted algorithm???

is there any decryption algorithm that uses a dictionary to decrypt an encrypted algorithm???

Scheduled Pinned Locked Moved C#
questionalgorithmssecurityhelp
20 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Ha lee

    well I have been working on an assigment and it states:: A program has to be developed, and coded in C language, to decipher a document written in Italian that is encoded using a secret key. The secret key is obtained as random permutation of all the uppercase letters, lowercase letters, numbers and blank space. As an example, let us consider the following two strings: Plain: “ABCDEFGHIJKLMNOPQRSTUVXWYZabcdefghijklmnopqrstuvwxyz0123456789 ” Code: “BZJ9y0KePWopxYkQlRjhzsaNTFAtM7H6S24fC5mcIgXbnLOq8Uid 3EDv1ruVGw” The secret key modifies only letters, numbers, and spaces of the original document, while the remaining characters are left unchanged. The document is stored in a text file whose length is unknown. The program has to read the document, find the secret key (which by definition is unknown; the above table is just an example and it is not the key used for preparing the sample files available on the web course) using a suitable decoding algorithm, and write the decoded document to a new text file. And I know that I have to upload an English dictionary into the program but I don't why it has been asked.(may be not in that statement but I have to dO THAT). My question is , while I can do that program using simple encryption/decryption algorithm then what's the use of uploading the english dictionary in our program? So is there any decryption algorithm that uses a dictionary to decrypt an encrypted file? or can somebody tell me what approach or algorithm should I use to solve that problem??? An early reply (and also authentic one) will be highly appreciated from you. Thank you guys.

    F Offline
    F Offline
    fly904
    wrote on last edited by
    #2

    Where do I start?

    Ha lee wrote:

    C language

    Your in the C# forum, not the C[^] forum.

    Ha lee wrote:

    I know that I have to upload an English dictionary

    Where did you get that idea from? Your assignment is simple: Encrypted Italian -> Decrpyted Italian Go through it char by char and decrypt. Decrypt this: 9Ic'LwMbInnwgInL!

    My failometer is detecting vast quantities of FAIL! "Its SQL - hardly programming..." (Caslen)

    H 1 Reply Last reply
    0
    • F fly904

      Where do I start?

      Ha lee wrote:

      C language

      Your in the C# forum, not the C[^] forum.

      Ha lee wrote:

      I know that I have to upload an English dictionary

      Where did you get that idea from? Your assignment is simple: Encrypted Italian -> Decrpyted Italian Go through it char by char and decrypt. Decrypt this: 9Ic'LwMbInnwgInL!

      My failometer is detecting vast quantities of FAIL! "Its SQL - hardly programming..." (Caslen)

      H Offline
      H Offline
      Ha lee
      wrote on last edited by
      #3

      what kind of humiliating reply this is Mr fly 904????

      F 1 Reply Last reply
      0
      • H Ha lee

        what kind of humiliating reply this is Mr fly 904????

        F Offline
        F Offline
        fly904
        wrote on last edited by
        #4

        What kind of moronic question did you ask Miss Lee Ha?

        My failometer is detecting vast quantities of FAIL! "Its SQL - hardly programming..." (Caslen)

        modified on Sunday, May 3, 2009 9:25 PM

        H 1 Reply Last reply
        0
        • F fly904

          What kind of moronic question did you ask Miss Lee Ha?

          My failometer is detecting vast quantities of FAIL! "Its SQL - hardly programming..." (Caslen)

          modified on Sunday, May 3, 2009 9:25 PM

          H Offline
          H Offline
          Ha lee
          wrote on last edited by
          #5

          If you are moronic and can't answer that. stop being rude anymore. and do some other stuff please. By the way, I am not Mr. I am Miss Lee ha. ok???

          F T 2 Replies Last reply
          0
          • H Ha lee

            If you are moronic and can't answer that. stop being rude anymore. and do some other stuff please. By the way, I am not Mr. I am Miss Lee ha. ok???

            F Offline
            F Offline
            fly904
            wrote on last edited by
            #6

            Im sorry sir. What was wrong with my answer exactly?

            My failometer is detecting vast quantities of FAIL! "Its SQL - hardly programming..." (Caslen)

            1 Reply Last reply
            0
            • H Ha lee

              If you are moronic and can't answer that. stop being rude anymore. and do some other stuff please. By the way, I am not Mr. I am Miss Lee ha. ok???

              T Offline
              T Offline
              Tim Craig
              wrote on last edited by
              #7

              Ha lee wrote:

              do some other stuff please.

              Do your own damn homework then.

              "Republicans are the party that says government doesn't work and then they get elected and prove it." -- P.J. O'Rourke

              I'm a proud denizen of the Real Soapbox[^]
              ACCEPT NO SUBSTITUTES!!!

              H 1 Reply Last reply
              0
              • T Tim Craig

                Ha lee wrote:

                do some other stuff please.

                Do your own damn homework then.

                "Republicans are the party that says government doesn't work and then they get elected and prove it." -- P.J. O'Rourke

                I'm a proud denizen of the Real Soapbox[^]
                ACCEPT NO SUBSTITUTES!!!

                H Offline
                H Offline
                Ha lee
                wrote on last edited by
                #8

                Why are you offended Mr Craig?. I didn't write that sentence for you. I dunno why you answer me like that???

                T 1 Reply Last reply
                0
                • H Ha lee

                  Why are you offended Mr Craig?. I didn't write that sentence for you. I dunno why you answer me like that???

                  T Offline
                  T Offline
                  Tim Craig
                  wrote on last edited by
                  #9

                  Ha lee wrote:

                  Why are you offended Mr Craig?.

                  Because you waltz in here and cross post all over the place trying to get others to do your homework for you when you've obviously done precious little preparation for it. That offends me. And then to act like you have some special status when you're called on it, also offends me. I'd say get a clue but obviously your search capabilities aren't up to it. :mad:

                  "Republicans are the party that says government doesn't work and then they get elected and prove it." -- P.J. O'Rourke

                  I'm a proud denizen of the Real Soapbox[^]
                  ACCEPT NO SUBSTITUTES!!!

                  H 1 Reply Last reply
                  0
                  • T Tim Craig

                    Ha lee wrote:

                    Why are you offended Mr Craig?.

                    Because you waltz in here and cross post all over the place trying to get others to do your homework for you when you've obviously done precious little preparation for it. That offends me. And then to act like you have some special status when you're called on it, also offends me. I'd say get a clue but obviously your search capabilities aren't up to it. :mad:

                    "Republicans are the party that says government doesn't work and then they get elected and prove it." -- P.J. O'Rourke

                    I'm a proud denizen of the Real Soapbox[^]
                    ACCEPT NO SUBSTITUTES!!!

                    H Offline
                    H Offline
                    Ha lee
                    wrote on last edited by
                    #10

                    Well and if you are not capable for helping anyone, stop being rude and stay at home . such a looser. everyone has self respect, but if you don't have any. I can't help. I just asked for the help not for your rude comments which really represents your manners too. got any education??? so far you didn't tell me anything related to my problem but just that rubbish only. If I post a question here, it means, help me if you can. But if you can't don't simply get rude. And now I know how much capabilities you have got. I don't know what you are doing at that site. No more offense, i say. If you don't wanna help, I am not asking you for it from you. Bye!!!!

                    T 1 Reply Last reply
                    0
                    • H Ha lee

                      Well and if you are not capable for helping anyone, stop being rude and stay at home . such a looser. everyone has self respect, but if you don't have any. I can't help. I just asked for the help not for your rude comments which really represents your manners too. got any education??? so far you didn't tell me anything related to my problem but just that rubbish only. If I post a question here, it means, help me if you can. But if you can't don't simply get rude. And now I know how much capabilities you have got. I don't know what you are doing at that site. No more offense, i say. If you don't wanna help, I am not asking you for it from you. Bye!!!!

                      T Offline
                      T Offline
                      Tim Craig
                      wrote on last edited by
                      #11

                      Ha lee wrote:

                      Bye!!!!

                      Don't let the door hit you in the ass on the way out.

                      "Republicans are the party that says government doesn't work and then they get elected and prove it." -- P.J. O'Rourke

                      I'm a proud denizen of the Real Soapbox[^]
                      ACCEPT NO SUBSTITUTES!!!

                      H 1 Reply Last reply
                      0
                      • T Tim Craig

                        Ha lee wrote:

                        Bye!!!!

                        Don't let the door hit you in the ass on the way out.

                        "Republicans are the party that says government doesn't work and then they get elected and prove it." -- P.J. O'Rourke

                        I'm a proud denizen of the Real Soapbox[^]
                        ACCEPT NO SUBSTITUTES!!!

                        H Offline
                        H Offline
                        Ha lee
                        wrote on last edited by
                        #12

                        No, it has already hit your ass. I am Sorry for you Mr Crab. ooo I mean. whateva.

                        F 1 Reply Last reply
                        0
                        • H Ha lee

                          No, it has already hit your ass. I am Sorry for you Mr Crab. ooo I mean. whateva.

                          F Offline
                          F Offline
                          fly904
                          wrote on last edited by
                          #13

                          Ha lee wrote:

                          No, it has already hit your ass.

                          That was a lame come back. (I'm not being rude, it's just a fact)

                          Ha lee wrote:

                          I am Sorry for you Mr Crab. ooo I mean. whateva.

                          It seems to me that you're the one being rude. ps. I have said nothing offensive in this post so you can't complain about rudeness. :-\

                          My failometer is detecting vast quantities of FAIL! "Its SQL - hardly programming..." (Caslen)

                          H 2 Replies Last reply
                          0
                          • F fly904

                            Ha lee wrote:

                            No, it has already hit your ass.

                            That was a lame come back. (I'm not being rude, it's just a fact)

                            Ha lee wrote:

                            I am Sorry for you Mr Crab. ooo I mean. whateva.

                            It seems to me that you're the one being rude. ps. I have said nothing offensive in this post so you can't complain about rudeness. :-\

                            My failometer is detecting vast quantities of FAIL! "Its SQL - hardly programming..." (Caslen)

                            H Offline
                            H Offline
                            Ha lee
                            wrote on last edited by
                            #14

                            actually, it wasn't a lame come back. something must have hit your a** that's why you have been so rude. And i misspelled your name because I don't remember as it is changed every time. It seems to me that there's only one person in the room with some problem who sends me messages with different names, sometimes with crab, fly etc. If you are really not interested in answering people about their problems related with programming field. don't let them know that you haven't got any maturity. I used to have a good view about the people of the UK when I visited England last year, but you are the one has started changing my view about them. I would just end up everything here saying 'shame on you . be mature now'.

                            F T 2 Replies Last reply
                            0
                            • F fly904

                              Ha lee wrote:

                              No, it has already hit your ass.

                              That was a lame come back. (I'm not being rude, it's just a fact)

                              Ha lee wrote:

                              I am Sorry for you Mr Crab. ooo I mean. whateva.

                              It seems to me that you're the one being rude. ps. I have said nothing offensive in this post so you can't complain about rudeness. :-\

                              My failometer is detecting vast quantities of FAIL! "Its SQL - hardly programming..." (Caslen)

                              H Offline
                              H Offline
                              Ha lee
                              wrote on last edited by
                              #15

                              And moreover, if you think I have been rude. I really apologize for that as I am a responsible and a mature person.

                              1 Reply Last reply
                              0
                              • H Ha lee

                                actually, it wasn't a lame come back. something must have hit your a** that's why you have been so rude. And i misspelled your name because I don't remember as it is changed every time. It seems to me that there's only one person in the room with some problem who sends me messages with different names, sometimes with crab, fly etc. If you are really not interested in answering people about their problems related with programming field. don't let them know that you haven't got any maturity. I used to have a good view about the people of the UK when I visited England last year, but you are the one has started changing my view about them. I would just end up everything here saying 'shame on you . be mature now'.

                                F Offline
                                F Offline
                                fly904
                                wrote on last edited by
                                #16

                                My last and first posts were mature but you obviously didn't see it that way. I answered you're question, I'm sorry if I miss understood it, but in that case you should have explained it more clearly. You asked in all the wrong forums and from what I can tell when you did ask in the right forum you got an answer. You have to undertstand that people just sign up to this site and ask people to do their homework/projects for them all the time because they are too lazy or simply don't know how, normally they cross post their questions several times which really riles people up. You fell into this stereotype and were rude which is why you got more hostilities. Do you see why people here are blunt now? (I don't mean any offence) ps.

                                Ha lee wrote:

                                crab

                                Where did you get 'crab' from?

                                My failometer is detecting vast quantities of FAIL! "Its SQL - hardly programming..." (Caslen)

                                H 1 Reply Last reply
                                0
                                • F fly904

                                  My last and first posts were mature but you obviously didn't see it that way. I answered you're question, I'm sorry if I miss understood it, but in that case you should have explained it more clearly. You asked in all the wrong forums and from what I can tell when you did ask in the right forum you got an answer. You have to undertstand that people just sign up to this site and ask people to do their homework/projects for them all the time because they are too lazy or simply don't know how, normally they cross post their questions several times which really riles people up. You fell into this stereotype and were rude which is why you got more hostilities. Do you see why people here are blunt now? (I don't mean any offence) ps.

                                  Ha lee wrote:

                                  crab

                                  Where did you get 'crab' from?

                                  My failometer is detecting vast quantities of FAIL! "Its SQL - hardly programming..." (Caslen)

                                  H Offline
                                  H Offline
                                  Ha lee
                                  wrote on last edited by
                                  #17

                                  I do posted into several forums and perhaps in the wrong ones too. But for your information, I got better and more useful replies from other forums than this one. Here too, people have been helpful except the fact that I cross posted my question several times, which was by mistake and I realized that later. Yes it is my assignment and you are again rude when you say that people are blunt and I fell in this category. But I had to post my assignment here because I don't have any idea about cryptography and I am new in that field . But as far as programming is concerned , I don't have any problem. That's why I just wanted a clue which algo may work or what approach should I use. And for your info , I got very positive replies from everywhere and every person except when I had to confront an immature person like you who can only make useless debates in order to show the world that you are the only genius in the world and all other are just stupid. I have never ever been lazy for my assignments. this was my first ever post here as i told you I don't know about cryptography and just know about programming. I didn't get any hostility only you are a strange kind of person , who made me to think more about the offensive talk rather than my assignment. In the end, I would say 'can you tell me how can I get rid of you?'. Because I have some other stuff to do too . I am not free like you to quarrel with different persons on the web. I had heard that programmers don't even get time to eat . But I dunno who are you really. So if you have got nothing to do, at least stop arguing here. Because all the world is not like you. Find a free person like you who can also argue in this way and then start arguing with him. i am not here to entertain you when you have nothing to do. Stop here.

                                  F 1 Reply Last reply
                                  0
                                  • H Ha lee

                                    I do posted into several forums and perhaps in the wrong ones too. But for your information, I got better and more useful replies from other forums than this one. Here too, people have been helpful except the fact that I cross posted my question several times, which was by mistake and I realized that later. Yes it is my assignment and you are again rude when you say that people are blunt and I fell in this category. But I had to post my assignment here because I don't have any idea about cryptography and I am new in that field . But as far as programming is concerned , I don't have any problem. That's why I just wanted a clue which algo may work or what approach should I use. And for your info , I got very positive replies from everywhere and every person except when I had to confront an immature person like you who can only make useless debates in order to show the world that you are the only genius in the world and all other are just stupid. I have never ever been lazy for my assignments. this was my first ever post here as i told you I don't know about cryptography and just know about programming. I didn't get any hostility only you are a strange kind of person , who made me to think more about the offensive talk rather than my assignment. In the end, I would say 'can you tell me how can I get rid of you?'. Because I have some other stuff to do too . I am not free like you to quarrel with different persons on the web. I had heard that programmers don't even get time to eat . But I dunno who are you really. So if you have got nothing to do, at least stop arguing here. Because all the world is not like you. Find a free person like you who can also argue in this way and then start arguing with him. i am not here to entertain you when you have nothing to do. Stop here.

                                    F Offline
                                    F Offline
                                    fly904
                                    wrote on last edited by
                                    #18

                                    Ha lee wrote:

                                    you are again rude when you say that people are blunt and I fell in this category

                                    You missed my point entirely. I meant the people who have to put up with people who ask to be spoon fed. I didn't imply that it was you. I wasn't being rude, immature or anything then. I was explaining why. I tried to help you, but you shot me down and still haven't explained why, I am sorry for misunderstanding.

                                    Ha lee wrote:

                                    But for your information, I got better and more useful replies from other forums than this one.

                                    That is because this forum is the wrong one for this topic as I said in my first post. The answers you got were in the C and Algorithm forums, which is where they were meant to be asked, were the ones which understood your needs best.

                                    Ha lee wrote:

                                    at least stop arguing here.

                                    I have stopped arguing. I can assure you that what I have said in my last couple of posts is sincere, you just haven't interperated it that way unfortunately.

                                    My failometer is detecting vast quantities of FAIL! "Its SQL - hardly programming..." (Caslen)

                                    1 Reply Last reply
                                    0
                                    • H Ha lee

                                      actually, it wasn't a lame come back. something must have hit your a** that's why you have been so rude. And i misspelled your name because I don't remember as it is changed every time. It seems to me that there's only one person in the room with some problem who sends me messages with different names, sometimes with crab, fly etc. If you are really not interested in answering people about their problems related with programming field. don't let them know that you haven't got any maturity. I used to have a good view about the people of the UK when I visited England last year, but you are the one has started changing my view about them. I would just end up everything here saying 'shame on you . be mature now'.

                                      T Offline
                                      T Offline
                                      Tim Craig
                                      wrote on last edited by
                                      #19

                                      Ha lee wrote:

                                      there's only one person in the room with some problem who sends me messages with different names, sometimes with crab, fly etc.

                                      Obviously, you're too clueless to realize that Fly904 and I are different people. As for how well you're received here, why didn't you look at your message list in your profile and see how many people voted 1 on your messages. Admittedly, a few of those are mine but I'm hardly alone. If you show you've made an attempt to research and understand your problem and ask specific questions, you're likely to get an answer here. But just coming in and cross posting your first question and basically say I've done nothing so just spoon feed me so I can quickly do my homework, it's generally going to get you anything but hostility.

                                      "Republicans are the party that says government doesn't work and then they get elected and prove it." -- P.J. O'Rourke

                                      I'm a proud denizen of the Real Soapbox[^]
                                      ACCEPT NO SUBSTITUTES!!!

                                      H 1 Reply Last reply
                                      0
                                      • T Tim Craig

                                        Ha lee wrote:

                                        there's only one person in the room with some problem who sends me messages with different names, sometimes with crab, fly etc.

                                        Obviously, you're too clueless to realize that Fly904 and I are different people. As for how well you're received here, why didn't you look at your message list in your profile and see how many people voted 1 on your messages. Admittedly, a few of those are mine but I'm hardly alone. If you show you've made an attempt to research and understand your problem and ask specific questions, you're likely to get an answer here. But just coming in and cross posting your first question and basically say I've done nothing so just spoon feed me so I can quickly do my homework, it's generally going to get you anything but hostility.

                                        "Republicans are the party that says government doesn't work and then they get elected and prove it." -- P.J. O'Rourke

                                        I'm a proud denizen of the Real Soapbox[^]
                                        ACCEPT NO SUBSTITUTES!!!

                                        H Offline
                                        H Offline
                                        Ha lee
                                        wrote on last edited by
                                        #20

                                        If fly and you are 2 different persons then why are you both writing me the same things??? Only you and him have really got some problem but all others don't have any problem with me . If many people have voted 1 for my comments , you also got the same . Don't make it your misconception. You are of worst standard for me. And go to hell, I didn't come to you to beg for anything. If you want to answer well and good, I would be obliged as this forum is to help others but if you don't want to help me, I don't care . But at least stop being rude to others and don't stuff your head in the things that you don't understand because that will make you frustrated for your low knowledge and you would be nothing but only rude to the people. Understand?????

                                        1 Reply Last reply
                                        0
                                        Reply
                                        • Reply as topic
                                        Log in to reply
                                        • Oldest to Newest
                                        • Newest to Oldest
                                        • Most Votes


                                        • Login

                                        • Don't have an account? Register

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular
                                        • World
                                        • Users
                                        • Groups