How to use the secretstorage.util.to_unicode function in SecretStorage

To help you get started, we’ve selected a few SecretStorage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github n1nj4sec / pupy / pupy / packages / linux / all / secretstorage / item.py View on Github external
def get_attributes(self):
        """Returns item attributes (dictionary)."""
        attrs = self.item_props_iface.Get(ITEM_IFACE, 'Attributes',
            signature='ss')
        return {to_unicode(key): to_unicode(value)
            for key, value in attrs.items()}
github n1nj4sec / pupy / pupy / packages / linux / all / secretstorage / collection.py View on Github external
def get_label(self):
        """Returns the collection label."""
        label = self.collection_props_iface.Get(COLLECTION_IFACE,
            'Label', signature='ss')
        return to_unicode(label)
github n1nj4sec / pupy / pupy / packages / linux / all / secretstorage / item.py View on Github external
def get_label(self):
        """Returns item label (unicode string)."""
        label = self.item_props_iface.Get(ITEM_IFACE, 'Label',
            signature='ss')
        return to_unicode(label)