def local_id(self):
        """Locally generated unique account identifier.

        :rtype: string
        """
        return hashlib.sha256(("%s%s" % (
            self.id,
            self.username)).encode()).hexdigest()
def local_id ( self ) : return hashlib . sha256 ( ( "%s%s" % ( self . id , self . username ) ) . encode ( ) ) . hexdigest ( )
Locally generated unique account identifier.

        :rtype: string