Re: Creating a unique number from a text string



On Wed, 26 Oct 2005 10:35:36 +1000, "Dixie" <dixie@xxxxxxxxxxx> wrote:

There are many ways. For example you could turn each character's ASCII
code into a hex number:
A -> Hex$(Asc("A")) = 41
etc.
You can also look at something called Base-64, which was specifically
designed to turn any string into "easy" characters.

-Tom.


>I am trying to create a registration system in which a unique text string
>accessible in a table of the program is turned into a unique number which
>will be matched with a number sent to the customer to type into the program
>to reregister it. The idea is that this key will not work on another
>program, only the one it is generated for.
>
>My initial problem is how do I generate in code, a unique number from say a
>3 word phrase with only letters of the alphabet in it.
>
>dixie
>

.



Relevant Pages

  • Re: healp reading / writing binary strings.
    ... Robert Klemme wrote: ... > And how can I write the same type of string from say an ... to the ascii table as well? ... for hex, does the hex value I supply correspond to the ascii table as ...
    (comp.lang.ruby)
  • Re: Attn:Mark Space... My Ascii 2 Hex back 2 Ascii program.
    ... converts it to it's Hex value and then converts the Hex value ... back to the Ascii string value. ... // system.in reader (the input from console) ...
    (comp.lang.java.help)
  • Attn:Mark Space... My Ascii 2 Hex back 2 Ascii program.
    ... It takes console input of an ascii ... converts it to it's Hex value and then converts the Hex value ... back to the Ascii string value. ...
    (comp.lang.java.help)
  • Re: How to construct a string with bunch of hex numbers?
    ... to construct a string with those hex numbers? ... No. I'd like to have a string like "xyzabc" and each ASCII char corresponds ... to a hex number. ...
    (microsoft.public.dotnet.languages.csharp)
  • Deutsch nach ASCII konvertieren
    ... "ascii", $string, sub { ... also das to_ascii offenbar einen Latin-1-kodierten String will. ... Gefunden habe ich weiterhin eine kleine Sub, die die Ersetzung ... Ähnlich wie bei Variante 1 wird hier die Menge der Ersetzungs-Regexen ...
    (de.comp.lang.perl.misc)