On Oct 10, 2010, at 8:39 PM, Nate Lowrie wrote:

>> Too bad this cryto stuff wasn't taken further than a mention in the Pycon
>> tutorial. I learn best with working examples I can tear apart .
>> 
>> I'll keep hacking away and hopefully, like with many other things I've
>> learned about python/Dabo, I'll eventually stumble onto the solution.
> 
> Carey,
> 
> I just thought I would throw out that I could never get it to work
> quite right either and the app would always use the built-in simple
> crypt function.

        Really? Is it that difficult to understand that it needs a more 
thorough explanation?

        Create a function that returns the value for the key you want to use. 
You could hard-code the key, but then it appears in plain text in your code; I 
think a function at least provides some measure of hiddenness.

def getMyKey():
        """Make this a little less obvious, of course."""
        return "foobar"


 Then set the app's CryptoKey property to that function:

app = dabo.dApp(CryptoKey=getMyKey)

        That's all you need to do.



-- Ed Leafe



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to