On Mon, 02 Apr 2012 16:19:05 -0700, Astan Chee wrote:
> and I'm trying to convert this into python and I'm rather stuck with
> pycrypto as there is no example on how to make the public key with a mod
> and exponent (or I've probably missed it).
from Crypto.PublicKey import RSA
mod = long("B99808B
Hi,
I've got a simple javascript that looks like this:
var public_key_mod =
"B99808B881F3D8A620F043D70B89674C0A120417FBD3690B3472589C641AD5D422502D0B26CADF97E2CB618DDDBD06CA0619EBBFB328A2FA31BD0F272FE3791810546E04BF42F05DB620FC7B4D0A2EAA17C18FF30C84D93341205C1D6EAD6ACBF2F08E334049DEBF31555CF164AD5
lkcl a écrit :
On Oct 3, 10:29 am, Bruno Desthuilliers wrote:
lkcl a écrit :> On Oct 2, 7:42 pm, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
lkcl a écrit :
And as far as I'm concerned, the point is
exactly here : it's doing "a little bit more" than the original code.
yeah, i know. a
> so, if i do this:
>
> d = dataListener()
> e = dataListener()
>
> d.data = "fred"
>
> print f.data
duh, duh - that should be print e.data :)
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 3, 10:29 am, Bruno Desthuilliers wrote:
> lkcl a écrit :> On Oct 2, 7:42 pm, Bruno Desthuilliers
> > <[EMAIL PROTECTED]> wrote:
> >> lkcl a écrit :
> Not 'mine' - I'm not the OP.
whoops, yes - i missed that. sorry!
> And as far as I'm concerned, the point is
> exactly here : it's doing
lkcl a écrit :
On Oct 2, 7:42 pm, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
lkcl a écrit :
(snip)
for fits and giggles, compile the above python using
pyjs.py, the python-to-javascript compiler
(seehttp://pyjamas.sf.net) and compare the
resultant javascript to your original code-fragment
On Oct 2, 7:42 pm, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> lkcl a écrit :
>
>
>
> > On Oct 2, 5:54 pm, Joe Hrbek <[EMAIL PROTECTED]> wrote:
> >> Could someone help me translate to something that would close to it in
> >> python? The anonymous functions are giving me problems.
>
> > class
lkcl a écrit :
On Oct 2, 5:54 pm, Joe Hrbek <[EMAIL PROTECTED]> wrote:
Could someone help me translate to something that would close to it in
python? The anonymous functions are giving me problems.
class dataListener:
def __init__(self):
data = ""
def onStartRequest(self, req
Joe Hrbek a écrit :
Could someone help me translate to something that would close to it in
python? The anonymous functions are giving me problems.
var dataListener = {
data : "",
onStartRequest: function(request, context){},
onStopRequest: function(request, context, status
On Oct 2, 5:54 pm, Joe Hrbek <[EMAIL PROTECTED]> wrote:
> Could someone help me translate to something that would close to it in
> python? The anonymous functions are giving me problems.
class dataListener:
def __init__(self):
data = ""
def onStartRequest(self, request, context)
Could someone help me translate to something that would close to it in
python? The anonymous functions are giving me problems.
var dataListener = {
data : "",
onStartRequest: function(request, context){},
onStopRequest: function(request, context, status){
instream.cl
11 matches
Mail list logo