Re: Coding Theory Question, I think




"Thinus Pollard" <thinus@xxxxxxxxxxxxx> wrote in message
news:dg6cbk$cdj$1@xxxxxxxxxxxxxxxxxxxxx
> 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.

Keep error correcting coding and cryptography concepts separate.

Error correcting coding in the communications sense would use a Reed-Solomon
or BCH code to represent your data as an expanded string of symbols. Any
book on coding theory or http://en.wikipedia.org/wiki/Error-correcting_code
will have options in the appendix which will fit your requirements.
Basically you need a MxN coding matrix H, M>>N, such that if your data
string is N-length vector X the coded output is M-length vector Y = HX; the
product done in some modulo number field. For an RS code with base 256 you
will need three decimal digits or two hex digits to print each symbol.
Decoding in the presence of errors is a bit messy but basic error detection
without correction is easy.

To encrypt this coded string, is a different matter,
http://en.wikipedia.org/wiki/Encryption and depends on the level of
protection required.

rusty


.



Relevant Pages

  • Re: Please, PLEASE, hold your questions/comments/elsewhat til the end. Thank you. :)
    ... approximately those probabilities. ... So now you go through some horribly complex coding process and think ... You've produced an invalid code (a code that isn't uniquely ... Now do your coding on every possible input string of that length so ...
    (comp.compression)
  • VBA Coding
    ... Needless to say my coding is a failure i.e. it does not work..... ... Dim StrDocName As String ... Dim stQryName As String ...
    (microsoft.public.access.modulesdaovba)
  • RE: prepare form for new record entry on open
    ... Private Sub openstudydetsup_Click ... Dim stLinkCriteria As String ... I’m wondering if this coding needs to be deleted in order to put in the ... >>> Dim stDocName As String ...
    (microsoft.public.access.formscoding)
  • Re: How to get a list of SQL Server Instances?
    ... run your coding on your box, it works fine since you also check local ... get the list of SQL Server Instances in a VB.Net application. ... private string instance; ... public ServerInstance (string server, string instance, string ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Long Integer truncates 0 at beginning of number
    ... I don't think you need to redo all your coding. ... you use the Format function or property as ... If you want to change it to a string: ... Is there anything I can do to keep the field type long? ...
    (microsoft.public.access.gettingstarted)