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. 64bit hashing algorithm

64bit hashing algorithm

Scheduled Pinned Locked Moved C#
csharpalgorithmsdata-structurescryptographytutorial
6 Posts 2 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.
  • R Offline
    R Offline
    reza assar
    wrote on last edited by
    #1

    hi all is there any 64bit hashing algorithm implemented in .net? i am using .net 3.5 and need to encrypt a string with length of 3 to a byte array of length 8 or 10 for example : hash("ABC")="!@?{%ER)@w" any suggestion?

    E 1 Reply Last reply
    0
    • R reza assar

      hi all is there any 64bit hashing algorithm implemented in .net? i am using .net 3.5 and need to encrypt a string with length of 3 to a byte array of length 8 or 10 for example : hash("ABC")="!@?{%ER)@w" any suggestion?

      E Offline
      E Offline
      Ennis Ray Lynch Jr
      wrote on last edited by
      #2

      Take the first half of the MD5 hash. I don't know how many collisions it will create or if they are uniform but it may work?

      Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

      R 1 Reply Last reply
      0
      • E Ennis Ray Lynch Jr

        Take the first half of the MD5 hash. I don't know how many collisions it will create or if they are uniform but it may work?

        Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

        R Offline
        R Offline
        reza assar
        wrote on last edited by
        #3

        hi no i need a class implemented in .net some thing like MD5 Class . but it have to generate byte array of length 6 to 10 (not 16 byte or higher).

        E 1 Reply Last reply
        0
        • R reza assar

          hi no i need a class implemented in .net some thing like MD5 Class . but it have to generate byte array of length 6 to 10 (not 16 byte or higher).

          E Offline
          E Offline
          Ennis Ray Lynch Jr
          wrote on last edited by
          #4

          I would read my post again. Last time I checked 16/2 = 8.

          Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

          R 1 Reply Last reply
          0
          • E Ennis Ray Lynch Jr

            I would read my post again. Last time I checked 16/2 = 8.

            Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

            R Offline
            R Offline
            reza assar
            wrote on last edited by
            #5

            it would give ambiguous meaning does anyone know something about this problem?

            E 1 Reply Last reply
            0
            • R reza assar

              it would give ambiguous meaning does anyone know something about this problem?

              E Offline
              E Offline
              Ennis Ray Lynch Jr
              wrote on last edited by
              #6

              All hashing algorithms give ambiguous results. The number of expected collisions is directly proportional to the input size, output size and quality of the hashing algorithm. Read the Wiki page on the subject for more information about hashing.

              Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

              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