Re: Coding Theory Question, I think



Nope, I did some abstract algebra a few years ago where we did some coding
theory.

The system issues tickets. Each ticket contains a PIN. This PIN needs to be
unique and only I should be able to issue valid PINs.

The PIN contains an issue date, an expiry date, a unique serial number and
an amount. All this data should be encoded into a 16 *digit* string.

Validation should take the following form:
1. When entered the system should check if the entered string is valid. This
is easy, use 15 digits and append a check as the 16th.
2. When verified the system should check if the data inside the PIN "makes
sense".

I was thinking about packing all the data into some bits and then encrypting
it with a cipher (public key or symmetrical). The problem with this idea is
how to map the data to a 15 digit string, without losing information? From
the 16 digits you should be able to extract the information if you have the
cypher keys.

I apologize if the original post was a bit vague.

regards,
T


William Elliot wrote:

> On Tue, 13 Sep 2005, Thinus Pollard wrote:
>
>> I am looking for a code that has the following properties:
>>
>> Given some data (date, unique identifier etc etc) we need to map this
>> data to 16 digit strings. We need to be able to validate the strings as
>> well.
>>
>> I think I can manage the packing of the data and validation of the
>> strings, but I'm slightly stumped on how to encode everything into 16
>> digit strings. Any pointers would be greatly appreciated.
>>
> You might explain why you need packing. For example,
> 6 numerical digits for date (forget the year 2100 problem)
> 8 alpha numeric bytes for identifier, 2 check digits.
>
> What validation is needed?
>
>> To be brutally honest, I don't even know in what I'm looking for is
>> called ;)
>
> You ask this with a wink and a smile?
> Am I to think you're putting us on?

.



Relevant Pages

  • Re: How to convert a number to hex number?
    ... Originally two's compliment representations were used to efficiently ... the same could be said for any ascii representation of numbers. ... The idea of base-complement is that the first digit is the zero digit for ... Also I wanted to see how much slower using strings instead of ints would be. ...
    (comp.lang.python)
  • Re: Regex - Ensure 0,1 occurrences from a list of possibilities
    ... It would be pretty easy to extend this or generate this for longer strings. ... Evwen though a simple piece of C# would be more elegant, I couldn't resist trying to see if it was possible with just Regex:) ... D-11 (repeated digit) ... Jesse Houwing ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: infinity
    ... >> TO asserts a priori that there are as 'many' digit positions in any ... >> one of his strings as there are arbitrary binary strings in his set ... That may be true in the twilight zone of TOmatics, ... >>> Not clear to anyone outside of Virgilogic, ...
    (sci.math)
  • Re: My nut came off
    ... It will often take a tool such as shown --BUT DO NOT PULL OR PRY AS SHOWN AND DIRECTED-- as the idiot in that article is doing and advocating as doing so will cause the pin to bend and break as force is applied to the length of the pin. ... All you need to be concerned with is holding the nut in place as the tension from the strings will do the rest of the work. ... If you ever for whatever reason need to replace the nut the strong glues being engineered these days will bond to the fibers of the wood the neck is made of and will rip some of those fibers out with the glue as the nut is cut and has to be forcibly extracted. ... Get into the habit of ALWAYS putting or replacing one string at a time to keep constant tension on the neck as evenly distributed as the remaining tightened and presumably tuned strings impose on the neck. ...
    (alt.guitar.beginner)
  • Re: I need and opinion on good acoustic strings
    ... What I do to remove bridge pins: I use a small needle nose pliers and grab ... the pin right below the "ball" part of the pin and lever it out using the ... I am not familiar with an MD95, but some guitars do not take medium strings ... Best to try a lot of different strings, since each guitar and player ...
    (rec.music.makers.guitar)