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 / C++ / MFC
  4. How UnRAR a rar file with password

How UnRAR a rar file with password

Scheduled Pinned Locked Moved C / C++ / MFC
13 Posts 5 Posters 0 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.
  • C CPallini

    If you want have a look at source code of a program able to deal with RAR files than check out 7-Zip[^] sources. On the other hand if you wish to hack a password-protected RAR file, I doubt you are going to get help here. :)

    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
    [My articles]

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #4

    I think OP's name may be a clue. ;)

    Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

    C 1 Reply Last reply
    0
    • L Lost User

      I think OP's name may be a clue. ;)

      Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

      C Offline
      C Offline
      CPallini
      wrote on last edited by
      #5

      Good point. :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      1 Reply Last reply
      0
      • C CPallini

        If you want have a look at source code of a program able to deal with RAR files than check out 7-Zip[^] sources. On the other hand if you wish to hack a password-protected RAR file, I doubt you are going to get help here. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        H Offline
        H Offline
        hack004
        wrote on last edited by
        #6

        no...that I mean is written in C++ code to decompress RAR,and that's rar file have password, during decompress auto type password to decompress it..

        L R 2 Replies Last reply
        0
        • H hack004

          no...that I mean is written in C++ code to decompress RAR,and that's rar file have password, during decompress auto type password to decompress it..

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #7

          You can't do this. RAR is a proprietary file format and you need to buy a licence in order to get details of it.

          Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

          R 1 Reply Last reply
          0
          • L Lost User

            You can't do this. RAR is a proprietary file format and you need to buy a licence in order to get details of it.

            Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

            R Offline
            R Offline
            Rajesh R Subramanian
            wrote on last edited by
            #8

            Richard MacCutchan wrote:

            RAR is a proprietary file format and you need to buy a licence in order to get details of it.

            That's incorrect. The LZMA sdk (which 7zip uses) can be used to de-compress a RAR file. It's just that the RAR compression has been kept closed-source/proprietary or such.

            "Real men drive manual transmission" - Rajesh.

            L 1 Reply Last reply
            0
            • H hack004

              no...that I mean is written in C++ code to decompress RAR,and that's rar file have password, during decompress auto type password to decompress it..

              R Offline
              R Offline
              Rajesh R Subramanian
              wrote on last edited by
              #9

              CPallini's answer is correct. You could use the LZMA sdk to de-compress a RAR file. Whether the file has password or not is irrelevant (the SDK has methods for all such cases). If you have a more specific question, ask it in the sourceforge page for 7zip.

              "Real men drive manual transmission" - Rajesh.

              H C 2 Replies Last reply
              0
              • R Rajesh R Subramanian

                Richard MacCutchan wrote:

                RAR is a proprietary file format and you need to buy a licence in order to get details of it.

                That's incorrect. The LZMA sdk (which 7zip uses) can be used to de-compress a RAR file. It's just that the RAR compression has been kept closed-source/proprietary or such.

                "Real men drive manual transmission" - Rajesh.

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #10

                Thanks, I should never trust Wikipedia.

                Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

                R 1 Reply Last reply
                0
                • R Rajesh R Subramanian

                  CPallini's answer is correct. You could use the LZMA sdk to de-compress a RAR file. Whether the file has password or not is irrelevant (the SDK has methods for all such cases). If you have a more specific question, ask it in the sourceforge page for 7zip.

                  "Real men drive manual transmission" - Rajesh.

                  H Offline
                  H Offline
                  hack004
                  wrote on last edited by
                  #11

                  thanks for reply~~heh...

                  1 Reply Last reply
                  0
                  • L Lost User

                    Thanks, I should never trust Wikipedia.

                    Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

                    R Offline
                    R Offline
                    Rajesh R Subramanian
                    wrote on last edited by
                    #12

                    No problem. Technically, unRAR[^] is to be used for de-compressing a RAR file, but I recommended the LZMA SDK, becuase it uses the same code too, and it can do a lot of other things in addition to handling RAR files. :)

                    "Real men drive manual transmission" - Rajesh.

                    1 Reply Last reply
                    0
                    • R Rajesh R Subramanian

                      CPallini's answer is correct. You could use the LZMA sdk to de-compress a RAR file. Whether the file has password or not is irrelevant (the SDK has methods for all such cases). If you have a more specific question, ask it in the sourceforge page for 7zip.

                      "Real men drive manual transmission" - Rajesh.

                      C Offline
                      C Offline
                      CPallini
                      wrote on last edited by
                      #13

                      Rajesh R Subramanian wrote:

                      CPallini's answer is correct.

                      We call that 'lucky strike'. :-D

                      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                      [My articles]

                      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