INNER CODE UNIT · Python

decrypt

kurtbrose/pyjks · jks/bks.py:82

    def decrypt(self, key_password):
        """Does nothing for this entry type; these entries are stored in non-encrypted form."""
        pass

    @classmethod
    def type2str(cls, t):
        """
        Returns a string representation of the given key type. Returns one of ``PRIVATE``, ``PUBLIC`` or ``SECRET``, or ``None``
        if no such key type is known.

        :param int t: Key type constant. One of :const:`KEY_TYPE_PRIVATE`, :const:`KEY_TYPE_PUBLIC`, :const:`KEY_TYPE_SECRET`.
        """
        if t == KEY_TYPE_PRIVATE:
            return "PRIVATE"
        elif t == KEY_TYPE_PUBLIC:
            return "PUBLIC"
        elif t == KEY_TYPE_SECRET:
            return "SECRET"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…