[sugar] unique id

Dan Williams dcbw
Thu Mar 29 08:10:08 EDT 2007

On Wed, 2007-03-28 at 21:22 -0400, Erik Blankinship wrote:
> Hello
> We would like to resolve the ambiguity when two kids on the network
> have the same nickname and colors.  Is there an XO id and how do we
> access that?  Or should we be thinking about this differently?

from sugar import profile

key = profile.get_pubkey()

If you want a shorter key, you can hash that like:

from sugar import util

key_hash = util._sha_data(key)
hashed_key = util.printable_hash(key_hash)


More information about the Sugar-devel mailing list