Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Binary value of string

by elTriberium (Friar)
on Jul 11, 2011 at 20:14 UTC ( [id://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?
    Username:
    Password:

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

    How do I use this?Last hourOther CB clients
    Other Users?
    Others chanting in the Monastery: (3)
    As of 2024-04-24 02:03 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found