wasm-demo/demo/ermis-f/python_m/cur/0184

63 lines
2.3 KiB
Plaintext

From: movits at lockstar.com (Mordy Ovits)
Date: Fri, 9 Apr 1999 17:43:50 GMT
Subject: OpenSSL/X.509
References: <7e1hiq$a71$1@Starbase.NeoSoft.COM>
<7ear25$ksf$1@news-sj-3.cisco.com>
<14089.11820.416453.80124@bitdiddle.cnri.reston.va.us>
<3709C8BE.4257C9F1@lemburg.com> <14090.16807.950025.496495@bitdiddle.cnri.reston.va.us> <370A78B6.2C18D10F@lockstar.com> <370BE48E.2BA9750C@lemburg.com>
Message-ID: <370E3C56.D035A3FB@lockstar.com>
Content-Length: 1873
X-UID: 184
M.-A. Lemburg wrote:
>
> Mordy Ovits wrote:
> >
> > Jeremy Hylton wrote:
> > >
> > > >>>>> "MAL" == M -A Lemburg <mal at lemburg.com> writes:
> >
> > [SNIP]
> >
> > > MAL> Note that I have a project running with the intention to wrap
> > > MAL> OpenSSL in an OO manner called mxCrypto (see the link below).
> > >
> > > Looking forward to seeing it. When do you think you might have an
> > > alpha release ready?
> > >
> > > Jeremy
> >
>>I have a fairly complete SWIGing of OpenSSL/SSleay working. I made it on
>>company time, so I have to get company permission to release it. If there is
>>real interest, I'll push for us to release it. It does all the X.509 stuff, is
> > very OO, and builds on win32 and unices.
> > Interested?
>
> Sure, but if your company is US based, then chances are high
> you won't be able to share the code outside the US... that's
> why I started mxCrypto, BTW.\
That's debatable. The SWIG bindings contain no crypto code in their own right.
It is merely glue to crypto code. I wouldn't be able to release statically
prebuilt libraries, but why would I want to anyway? Our lawyers keep waffling
on this, which is why I haven't released it already. I'm really pleased with
it, and would love give something back to the Python community. <SIGH> How
long before we Americans are reduced to doing Crypto with a deck of cards? (See
Bruce Schneier's Solitaire).
Mordy
--
o Mordy Ovits
o Cryptographic Engineer
o LockStar Inc.
---------------------------------------------------------------------------
#!/usr/local/bin/python
from sys import*;from string import*;a=argv;[s,p,q]=filter(lambda x:x[:1]!=
'-',a);d='-d'in a;e,n=atol(p,16),atol(q,16);l=(len(q)+1)/2;o,inb=l-d,l-1+d
while s:s=stdin.read(inb);s and map(stdout.write,map(lambda i,b=pow(reduce(
lambda x,y:(x<<8L)+y,map(ord,s)),e,n):chr(b>>8*i&255),range(o-1,-1,-1)))