Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Binary value of string

by elTriberium (Friar)
on Jul 11, 2011 at 20:14 UTC ( #913767=note: print w/replies, xml ) Need Help??

in reply to Binary value of string

I also recommend using an existing hashing algorithm. Just using the binary value of a character and then calculating the sum won't detect any character transposition. The values for the following 3 strings will all be the same:

  • "A String"
  • "String A"
  • "gnirtS A"
  • Replies are listed 'Best First'.
    Re^2: Binary value of string
    by ikegami (Patriarch) on Jul 11, 2011 at 21:15 UTC

      Examples using actual words:

      • loaf and foal
      • tort and trot
      • ant and tan
      • tame and mate
      • time and mite
      • tome and mote
      • ...

    Log In?

    What's my password?
    Create A New User
    Domain Nodelet?
    Node Status?
    node history
    Node Type: note [id://913767]
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others examining the Monastery: (11)
    As of 2023-12-04 22:38 GMT
    Find Nodes?
      Voting Booth?
      What's your preferred 'use VERSION' for new CPAN modules in 2023?

      Results (25 votes). Check out past polls.