Re: HMAC_KEY

Irmen de Jong <[email protected]> Wed, 13 Nov 2013 22:38:01 +0100
Newsgroups gmane.comp.python.pyro
Message-ID <[email protected]>
On 10-11-2013 23:56, FC wrote:
> 
> How to connect to a secure flameserver?
> 
> 
> Server side:  *python -m Pyro4.utils.flameserver -H 192.168.1.102 -p 64444 -k 123456*
> 
> Client side:  */flame=Pyro4.utils.flame.connect("192.168.1.102:64444, key=123456")
> ?   
> 
> I want explanation for connecting on a server with HMAC_Key


Simply set the HMAC_KEY config item before connecting, just like you would do with any
other Pyro client code:


>>> import Pyro4.utils.flame
>>> Pyro4.config.SERIALIZER="pickle"
>>> Pyro4.config.HMAC_KEY=b"123456"
>>> flame=Pyro4.utils.flame.connect("localhost:64444")
>>> flame.evaluate("3+3")
6


Irmen


------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk