Re: Some questions
Irmen de Jong <[email protected]> Fri, 12 Dec 2014 23:37:37 +0100
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
On 12-12-2014 3:05, Bzzzz wrote: > OK, this is now working as expected: > > ns = Pyro4.naming.locateNS( hmac_key=conf_cli.HMAC_KEY ) > uri = ns.lookup( conf_cli.NS_REGISTERED_NAME ) > DB = Pyro4.core.Proxy( uri ) > DB._pyroHmacKey = conf_cli.HMAC_KEY Good, going to make an official release from this. > What would be veeery niiice to have, would be an all-in-one, > something like: > > DB = Pyro4.core.Proxy( conf_cli.NS_REGISTERED_NAME, conf_cli.HMAC_KEY ) Meh, you can easily add a factory method yourself that takes a hmac key as additional parameter. > Crap, I feel like inspector Columbo: aheeemm, just one more question: is > there a C hmac function that could be easily substituted to the Python's > one? I'm not sure what you're asking, but is this what you're looking for: https://www.openssl.org/docs/crypto/hmac.html Irmen ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk