Encryption and python?
Ng Pheng Siong
ngps at madcap.dyndns.org
Fri Jul 13 13:39:14 EDT 2001
According to Greg Copeland <gtcopeland at earthlink.net>:
> Fair enough. I'm looking for low-level algorithms for public
> key exchange, some encryption, digital signatures and hashes.
<plug>
M2Crypto:
$ python rsatest.py
testing public-key encryption: pkcs1_padding
testing public-key encryption: pkcs1_oaep_padding
testing private-key signing: pkcs1_padding
$ python dsatest.py
testing signing... ok
testing asn1 signing... ok
$ python dhtest.py
generating dh params:
...+...+.+.+...++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*
p = '\000\000\000\021\000\201\366\316W\372\036\272\352\004&\214\010\317\2072\313'
g = '\000\000\000\001\002'
a.pub = '\000\000\000\020V4\277\363c\325!;1\211\261\262u\350\223\371'
a.priv = '\000\000\000\020K\246\035e\235\254\2010G\372\200u\357D1\214'
b.pub = '\000\000\000\021\000\201\205\031=W\252g\262\336\242Iz\202\020\360\336'
b.priv = '\000\000\000\020d\226\034\3723\357\354W~\366co\014\345\275\032'
a.key = '2\001:\015\013tE\215D\365\276\302;\324u\367'
b.key = '2\001:\015\013tE\215D\365\276\302;\324u\367'
$ python evp_ciph_test.py
testing bf_ecb ... ok
testing bf_cbc ... ok
testing bf_cfb ... ok
testing bf_ofb ... ok
testing idea_ecb ... ok
testing idea_cbc ... ok
testing idea_cfb ... ok
testing idea_ofb ... ok
testing cast5_ecb ... ok
testing cast5_cbc ... ok
testing cast5_cfb ... ok
testing cast5_ofb ... ok
testing rc5_ecb ... ok
testing rc5_cbc ... ok
testing rc5_cfb ... ok
testing rc5_ofb ... ok
testing des_ecb ... ok
testing des_cbc ... ok
testing des_cfb ... ok
testing des_ofb ... ok
testing des_ede_ecb ... ok
testing des_ede_cbc ... ok
testing des_ede_cfb ... ok
testing des_ede_ofb ... ok
testing des_ede3_ecb ... ok
testing des_ede3_cbc ... ok
testing des_ede3_cfb ... ok
testing des_ede3_ofb ... ok
testing rc4 ... ok
testing rc2_40_cbc ... ok
</plug>
--
Ng Pheng Siong <ngps at post1.com> * http://www.post1.com/home/ngps
Quidquid latine dictum sit, altum viditur.
More information about the Python-list
mailing list