salted md5 hash

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sýfýrýncý Murat

    salted md5 hash

    How can I get hash value for a specified string with specified salt? There
    are some md5 implementations under System.Security .Crptography but I could
    not find anything about salted md5 algorithm.


  • Rakesh Rajan

    #2
    RE: salted md5 hash

    Try the
    FormsAuthentica tion.HashPasswo rdForStoringInC onfigFile method.

    This does not salt the string. So you need to salt the string before creating the hash and then store the salt along with the hashed pwd for retrival.

    --
    Rakesh Rajan


    "Sýfýrýn cý Murat" wrote:
    [color=blue]
    > How can I get hash value for a specified string with specified salt? There
    > are some md5 implementations under System.Security .Crptography but I could
    > not find anything about salted md5 algorithm.
    >
    >
    >[/color]

    Comment

    • Sýfýrýncý Murat

      #3
      Re: salted md5 hash

      thank you, it was a good pointer tor start from.

      another question : that method generates long hash values, i do not know the
      name of the format but i need shorter hashes, is there any option for this?


      "Rakesh Rajan" <RakeshRajan@di scussions.micro soft.com> wrote in message
      news:65D73BC9-6778-4A13-B8F4-C3E1D9C42D54@mi crosoft.com...[color=blue]
      > Try the
      > FormsAuthentica tion.HashPasswo rdForStoringInC onfigFile method.
      >
      > This does not salt the string. So you need to salt the string before[/color]
      creating the hash and then store the salt along with the hashed pwd for
      retrival.[color=blue]
      >
      > --
      > Rakesh Rajan
      >
      >
      > "Syfyryncy Murat" wrote:
      >[color=green]
      > > How can I get hash value for a specified string with specified salt?[/color][/color]
      There[color=blue][color=green]
      > > are some md5 implementations under System.Security .Crptography but I[/color][/color]
      could[color=blue][color=green]
      > > not find anything about salted md5 algorithm.
      > >
      > >
      > >[/color][/color]


      Comment

      • cody

        #4
        Re: salted md5 hash

        If you need a shorter hash why don't you use CRC32 or Adler32?

        --
        cody

        Freeware Tools, Games and Humour
        http://www.deutronium.de.vu || http://www.deutronium.tk
        "Sýfýrýncý Murat" <@> schrieb im Newsbeitrag
        news:ud$eyLjbEH A.1000@TK2MSFTN GP12.phx.gbl...[color=blue]
        > thank you, it was a good pointer tor start from.
        >
        > another question : that method generates long hash values, i do not know[/color]
        the[color=blue]
        > name of the format but i need shorter hashes, is there any option for[/color]
        this?[color=blue]
        >
        >
        > "Rakesh Rajan" <RakeshRajan@di scussions.micro soft.com> wrote in message
        > news:65D73BC9-6778-4A13-B8F4-C3E1D9C42D54@mi crosoft.com...[color=green]
        > > Try the
        > > FormsAuthentica tion.HashPasswo rdForStoringInC onfigFile method.
        > >
        > > This does not salt the string. So you need to salt the string before[/color]
        > creating the hash and then store the salt along with the hashed pwd for
        > retrival.[color=green]
        > >
        > > --
        > > Rakesh Rajan
        > >
        > >
        > > "Syfyryncy Murat" wrote:
        > >[color=darkred]
        > > > How can I get hash value for a specified string with specified salt?[/color][/color]
        > There[color=green][color=darkred]
        > > > are some md5 implementations under System.Security .Crptography but I[/color][/color]
        > could[color=green][color=darkred]
        > > > not find anything about salted md5 algorithm.
        > > >
        > > >
        > > >[/color][/color]
        >
        >[/color]


        Comment

        • Sýfýrýncý Murat

          #5
          Re: salted md5 hash

          ok, that might be a better idea but i just have to use md5.

          I'm using a Serv-u FTP software on a server. Serv-u stores user passwords in
          an ini file, with salted md5 encryption. I'm trying to implement an
          automated system to create user accounts and this system will append new
          account informaiton at the end of the serv-u ini file. The details of the
          encryption and manually entering user info to the ini file are explained
          here :




          This is the reason why i want to use salted MD5. Although the example in the
          above link uses a long hash value, the actual ini file contains shorter ones
          like ermm.. Here try the salted md5 algorithm at this link
          http://www.n3dst4.com/network/crypter . Try hashing 12345678 with salt "ab".
          The product is "ab1iBa.N.U 2C6" which is in the form I have been looking for.
          The MD5 hash is "5d55ad283aa400 af464c76d713c07 ad" but I'm not looking for
          this.


          Comment

          • Sýfýrýncý Murat

            #6
            Re: salted md5 hash

            ok, that might be a better idea but i just have to use md5.

            I'm using a Serv-u FTP software on a server. Serv-u stores user passwords in
            an ini file, with salted md5 encryption. I'm trying to implement an
            automated system to create user accounts and this system will append new
            account informaiton at the end of the serv-u ini file. The details of the
            encryption and manually entering user info to the ini file are explained
            here :




            This is the reason why i want to use salted MD5. Although the example in the
            above link uses a long hash value, the actual ini file contains shorter ones
            like ermm.. Here try the salted md5 algorithm at this link
            http://www.n3dst4.com/network/crypter . Try hashing 12345678 with salt "ab".
            The product is "ab1iBa.N.U 2C6" which is in the form I have been looking for.
            The MD5 hash is "5d55ad283aa400 af464c76d713c07 ad" but I'm not looking for
            this.


            Comment

            • cody

              #7
              Re: salted md5 hash

              maybe you can use int.Parse() to parse each byte of the string (2 digits are one hex byte) and put all resulting numbers in a byte[] array then use Convert.ToBase6 4CharArray() to convert it to the form you want.

              --
              cody

              [Freeware, Games and Humor]
              www.deutronium.de.vu || www.deutronium.tk
              "Sýfýrýncý Murat" <@> schrieb im Newsbeitrag news:uhJL63obEH A.3016@tk2msftn gp13.phx.gbl...[color=blue]
              > ok, that might be a better idea but i just have to use md5.
              >
              > I'm using a Serv-u FTP software on a server. Serv-u stores user passwords in
              > an ini file, with salted md5 encryption. I'm trying to implement an
              > automated system to create user accounts and this system will append new
              > account informaiton at the end of the serv-u ini file. The details of the
              > encryption and manually entering user info to the ini file are explained
              > here :
              >
              > http://rhinosoft.com/KBArticle.asp?RefNo=1177&prod=su
              >
              >
              > This is the reason why i want to use salted MD5. Although the example in the
              > above link uses a long hash value, the actual ini file contains shorter ones
              > like ermm.. Here try the salted md5 algorithm at this link
              > http://www.n3dst4.com/network/crypter . Try hashing 12345678 with salt "ab".
              > The product is "ab1iBa.N.U 2C6" which is in the form I have been looking for.
              > The MD5 hash is "5d55ad283aa400 af464c76d713c07 ad" but I'm not looking for
              > this.
              >
              >[/color]

              Comment

              • cody

                #8
                Re: salted md5 hash

                maybe you can use int.Parse() to parse each byte of the string (2 digits are one hex byte) and put all resulting numbers in a byte[] array then use Convert.ToBase6 4CharArray() to convert it to the form you want.

                --
                cody

                [Freeware, Games and Humor]
                www.deutronium.de.vu || www.deutronium.tk
                "Sýfýrýncý Murat" <@> schrieb im Newsbeitrag news:uhJL63obEH A.3016@tk2msftn gp13.phx.gbl...[color=blue]
                > ok, that might be a better idea but i just have to use md5.
                >
                > I'm using a Serv-u FTP software on a server. Serv-u stores user passwords in
                > an ini file, with salted md5 encryption. I'm trying to implement an
                > automated system to create user accounts and this system will append new
                > account informaiton at the end of the serv-u ini file. The details of the
                > encryption and manually entering user info to the ini file are explained
                > here :
                >
                > http://rhinosoft.com/KBArticle.asp?RefNo=1177&prod=su
                >
                >
                > This is the reason why i want to use salted MD5. Although the example in the
                > above link uses a long hash value, the actual ini file contains shorter ones
                > like ermm.. Here try the salted md5 algorithm at this link
                > http://www.n3dst4.com/network/crypter . Try hashing 12345678 with salt "ab".
                > The product is "ab1iBa.N.U 2C6" which is in the form I have been looking for.
                > The MD5 hash is "5d55ad283aa400 af464c76d713c07 ad" but I'm not looking for
                > this.
                >
                >[/color]

                Comment

                Working...