Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Trying To Get MD5 out of a .bat file  (Read 18879 times)

0 Members and 2 Guests are viewing this topic.

briandams



    Beginner

    Thanked: 2
    • Experience: Guru
    • OS: Unknown
    Re: Trying To Get MD5 out of a .bat file
    « Reply #15 on: January 15, 2014, 06:46:10 AM »
    this guy just need an md5 tool, why so many opinions on what he should do ?

    @TS, go here and download md5sum. that's it.

    camerongray



      Expert
    • Thanked: 306
      • Yes
      • Cameron Gray - The Random Rambings of a Computer Geek
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Mac OS
    Re: Trying To Get MD5 out of a .bat file
    « Reply #16 on: January 15, 2014, 07:26:42 AM »
    this guy just need an md5 tool, why so many opinions on what he should do ?

    As we just established, while they originally wanted an MD5 tool he was wanting to use it to encrypt a file.  Surely you know that MD5 is a hashing algorithm which is one way (An MD5 hash cannot be converted back to the original message) and that the OP should instead be looking at some sort of encryption algorithm.

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: Trying To Get MD5 out of a .bat file
    « Reply #17 on: January 15, 2014, 07:54:10 AM »
    this guy just need an md5 tool

    Quote
    I need a MD5 Hash or some other thing to stop prying eyes from looking at a file and knowing that the contents are
    They thought they need(ed) an MD5 tool. But since an MD5 hash isn't going to do any of those, they were likely mistaken.
    I was trying to dereference Null Pointers before it was cool.

    briandams



      Beginner

      Thanked: 2
      • Experience: Guru
      • OS: Unknown
      Re: Trying To Get MD5 out of a .bat file
      « Reply #18 on: January 15, 2014, 08:12:32 AM »
      As we just established, while they originally wanted an MD5 tool he was wanting to use it to encrypt a file.  Surely you know that MD5 is a hashing algorithm which is one way (An MD5 hash cannot be converted back to the original message) and that the OP should instead be looking at some sort of encryption algorithm.
      and surely you know that he can use hashing functions in an encryption framework to "keep from prying eyes" as well. In this case, "prying eyes" can be those trying to change the integrity. Please, just give him what he wants.

      camerongray



        Expert
      • Thanked: 306
        • Yes
        • Cameron Gray - The Random Rambings of a Computer Geek
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Mac OS
      Re: Trying To Get MD5 out of a .bat file
      « Reply #19 on: January 15, 2014, 08:32:59 AM »
      and surely you know that he can use hashing functions in an encryption framework to "keep from prying eyes" as well. In this case, "prying eyes" can be those trying to change the integrity. Please, just give him what he wants.

      Read his posts again - He even used the word "encrypt" - He did not mention file integrity.

      You really need to watch your attitude - A lot of your posts have the tone of "I am better than you" or "I know I'm right".  You aren't exactly giving a good first impression on this forum!

      Allan

      • Moderator

      • Mastermind
      • Thanked: 1260
      • Experience: Guru
      • OS: Windows 10
      Re: Trying To Get MD5 out of a .bat file
      « Reply #20 on: January 15, 2014, 08:37:16 AM »
      and surely you know that he can use hashing functions in an encryption framework to "keep from prying eyes" as well. In this case, "prying eyes" can be those trying to change the integrity. Please, just give him what he wants.

      You have a very confrontational and abrasive manner. You've already received one warning. The next one will result in your posting privileges being revoked. Please try to watch the way you respond and show others the same respect you'd like to receive. Thank you.

      Squashman



        Specialist
      • Thanked: 134
      • Experience: Experienced
      • OS: Other
      Re: Trying To Get MD5 out of a .bat file
      « Reply #21 on: January 15, 2014, 09:21:19 AM »
      if you want a basic text file encryption do a Google search for ROT13.

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: Trying To Get MD5 out of a .bat file
      « Reply #22 on: January 15, 2014, 09:26:46 AM »
      and surely you know that he can use hashing functions in an encryption framework to "keep from prying eyes" as well. In this case, "prying eyes" can be those trying to change the integrity. Please, just give him what he wants.
      None of the content or examples he gave suggest this was the OP's intention.
      I was trying to dereference Null Pointers before it was cool.

      briandams



        Beginner

        Thanked: 2
        • Experience: Guru
        • OS: Unknown
        Re: Trying To Get MD5 out of a .bat file
        « Reply #23 on: January 15, 2014, 09:32:56 AM »
        None of the content or examples he gave suggest this was the OP's intention.
        errm yes, and aren't all of us assuming what we don't know? maybe he got mixed up about encryption where in fact, he just want hashing? who is right or who is wrong? No one knows. So, why not just give him what he wants.

        camerongray



          Expert
        • Thanked: 306
          • Yes
          • Cameron Gray - The Random Rambings of a Computer Geek
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Mac OS
        Re: Trying To Get MD5 out of a .bat file
        « Reply #24 on: January 15, 2014, 09:43:57 AM »
        errm yes, and aren't all of us assuming what we don't know? maybe he got mixed up about encryption where in fact, he just want hashing? who is right or who is wrong? No one knows. So, why not just give him what he wants.

        Because from everything that has been said so far, he is asking for encryption - This can be clearly seen from where the OP says that they have a file containing x then "I am trying to encrypt that file and make it like or something like that" with an example of an encrypted file.

        By your logic - If someone came here saying "My PC won't turn on, what replacement motherboards can I get?" you would say "Oh, get this Gigabyte GA-..." which is giving the OP what they want.  However, more experienced members would realise that the OP may have just jumped to the conclusion that their motherboard is at fault and would take them through the stages of testing other parts such as the power supply first!

        Quite frankly, you have a really bad attitude towards other members on the forum - You are new here and have made a really bad first impression.

        BC_Programmer


          Mastermind
        • Typing is no substitute for thinking.
        • Thanked: 1140
          • Yes
          • Yes
          • BC-Programming.com
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Windows 11
        Re: Trying To Get MD5 out of a .bat file
        « Reply #25 on: January 15, 2014, 09:48:49 AM »
        errm yes, and aren't all of us assuming what we don't know? maybe he got mixed up about encryption where in fact, he just want hashing? who is right or who is wrong? No one knows. So, why not just give him what he wants.
        Reply #9 indicates a desire for encryption, since the intent described in the posts previous to that indicate that they wish to use it "to stop prying eyes from looking at a file and knowing that the contents are". A requirement not met by a hash, since it implies that the data in the resulting file is still the same content but at a glance does not appear to be that content.

        I was trying to dereference Null Pointers before it was cool.

        Geek-9pm


          Mastermind
        • Geek After Dark
        • Thanked: 1026
          • Gekk9pm bnlog
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 10
        Re: Trying To Get MD5 out of a .bat file
        « Reply #26 on: January 15, 2014, 10:30:56 AM »
        Earlier I posted a link to a site that has a free third part Windows program that can hide a set of install files into one EXE file. The documentation indicates it would serve the needs of the OP. However, the OP either did not red the linked page, or else he already has his heart set on some other way to solve his problem.

        Dear OP,
        Hope you are still with us. The forum is made of volunteers with different backgrounds and skills. The general consensus is the MD5 is only part of a number of methods used to improve security in computer systems.
        It has been suggested that you try something that is more completed and self-contained to dove your problem.

        Yes, it is possible to write a program in a text editor that will look like nonsense. But it will execute hidden commands when lo pended in DOS. - But  later versions of Windows have blocked off that method for security reasons.

        Noways the proper way to begin a sires of actions without the user knowing the details is by using an Installer Program.

        Before you conclude that an installer is NOT for you, please look at the link below:
        http://en.wikipedia.org/wiki/List_of_installation_software.
        Also, the idea is discussed on the Microsoft site. But it may not be for you.
        http://www.microsoft.com/en-us/download/details.aspx?id=25

        Quote
        This white paper describes the patch sequencing functionality in Microsoft® Windows Installer version 3.0. Beginning with the theory of patch sequencing in Windows Installer version 3.0 and finishing with specific sequencing sample techniques for controlling the lifetime of patches through supersedence relationships, this document identifies the concepts of patch migration and compatibility, advanced sequencing scenarios, and integration of sequencing with other features of the Windows Installer.

        This document is targeted at installation developers or Setup authors responsible for the design, creation, and management of Windows Installer patches (.msp files). Familiarity with the basic principles of the Windows Installer and Windows Installer patches is assumed. Sample patch metadata tables in this document may be authored by using the Orca tool in the software development kit for Windows Installer version 3.0. Other authoring tools may require different authoring steps or may provide access to a subset of the described functionality.
        OK, that is not exactly what you want, but close. The installer does thinbgs with the user NOT knowing the details. Nor can the user change it.

        Just trying to help  :D :D


        Squashman



          Specialist
        • Thanked: 134
        • Experience: Experienced
        • OS: Other
        Re: Trying To Get MD5 out of a .bat file
        « Reply #27 on: January 15, 2014, 10:41:54 AM »
        Geek,
        Maybe I am misunderstanding the users request but it looks like from POST #9 that he just wants to encrypt a text file.

        Geek-9pm


          Mastermind
        • Geek After Dark
        • Thanked: 1026
          • Gekk9pm bnlog
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 10
        Re: Trying To Get MD5 out of a .bat file
        « Reply #28 on: January 15, 2014, 12:07:50 PM »
        Geek,
        Maybe I am misunderstanding the users request but it looks like from POST #9 that he just wants to encrypt a text file.
        Yes, it does. And I said above, that kind of stuff is now considered a security risk and you can't do nit without some  limitation due to security improvements.

        I can't post and example here  on the forum, because it violates rules about security.  The old trick was to create a text file with hidden code and then rename it as an executable file. Now that is much harder to do than t it used to be.

        The close thing now  is to convert a batch into an EXE and ask the user to open it as an attachment.  Here is an old post.
        http://www.computerhope.com/forum/index.php?topic=64597.0

        But the OP somehow got the idea you can do it with MB5.

        EDIT: Please look at the thread posted above. It is not as easy as one would want. Building an EXE file that will pas AV tests is a n o-go job if it has strange instructions.


        Salmon Trout

        • Guest
        Re: Trying To Get MD5 out of a .bat file
        « Reply #29 on: January 15, 2014, 12:31:46 PM »
        7-zip has AES-256 encryption.