CWM Crypto Stuff

Hi,

This is the crypto-for-CWM builtin that I've been working on for
a while. The module itself is attached as <<cwm_crypto.py>>, and
the test & result are attached as <<crypto-test.n3>> and
<<crypto-test-out.n3>> respectively.

As you can tell from the test, it can create keys (limitation:
one per session!), sign, and verify. It should be a trivial
matter to add other builtin properties based on the stuff in the
PyCrypt and mxCrypto packages.

I had to invent my own format for the keys, since after a
considerable amount of time spent trying to figure how how PGP et
al. represent their keys, I didn't have a clue. All I did was to
encode the encryption exponent and the modulus of the key as
base64 printed quotable blocks (plus the other 3 important bits
of the key for keypairs). If you have a relatively granular
cryptographic package, it should be possible to reconstruct a key
from the blocks quite easily. I know that PGP etc. add
time/author/etc. information to their keys.

--
Kindest Regards,
Sean B. Palmer
@prefix : <http://purl.org/net/swn#> .
:Sean :homepage <http://purl.org/net/sbp/> .

Received on Saturday, 30 March 2002 16:45:44 UTC