Triple DES code?



Does anyone know where I can get Triple DES code for C?

I have a need to encode a 4-character value, but the built-in
encryption code does not exist in the 64-bit world of the
system I am using (AIX 5.3). The xcrypt_encrypt function
is there for 32-bit (in a module in libmodcrypt.a) but does not
exist for the 64-bit system. IBM has even told me that on
a lengthy support call recently.

If the algorithm is not too hairy, I can write the code myself,
but I am having trouble find that out in Google-land. I've
read bits and pieces of explanations discussing XOR, but it is
not clear to me that it is as simple as doing that three times.

Anyhow...
I have a
4-char value and can make up three 64-byte keys, no problem.
(Actuall 2 keys and repeat the first one which seems to be the
norm from what I have read).

Anyone know if there are any pieces of code out there that
I can grab?

Thanks!
.



Relevant Pages

  • Re: array.["property"]
    ... associative array who was not satisfied using an Object. ... Keys must be strings, ... Some keys will exist by default because of Object's built-in properties. ... and would need to cover common features of associative arrays that ...
    (comp.lang.javascript)
  • Re: Byte Array Speed
    ... Quite unlike ROT-13, though, in that you can pick keys, rather than leave it ... Also if you do encode with multiple keys, it should be possible to construct ... Private lockchange As Boolean ... If lockchange Then Exit Sub ...
    (microsoft.public.vb.general.discussion)
  • Re: Learning Python via a little word frequency program
    ... keys.sort(key = freq.get, reverse = True) ... for k in keys: ... def snd): return y # I wish this was built-in ...
    (comp.lang.python)
  • Re: convert RSA keys
    ... > I've created a pair of keys in c and use in java RSA encryption. ... You will need a KeySpec for your key. ... PKCS8EncodedKeySpec instead of X509EncodedKeySpec if you encode your ...
    (comp.lang.java.programmer)
  • Re: array.["property"]
    ... Keys must be strings, not arbitrary objects. ... Some keys will exist by default because of Object's built-in properties. ... These will not be enumerated in for..in loops but can be directly accessed. ...
    (comp.lang.javascript)