import sys

__version__ = '0.9.1'

ENCODINGS = ['Base64',
             'Base64 URL',
             'Base32',
             'Hex',
             'URL',
             'HTML',
             'Rot13',
             'UTF8',
             'UTF16']

COMPRESSIONS = ['Gzip',
                'Bz2']

HASHS = ['MD5',
         'SHA1',
         'SHA224',
         'SHA256',
         'SHA384',
         'SHA512',
         'RIPEMD160',
         'MD4',
         'MDC2',
         'NTLM',
         'Whirlpool']

MISC = ['X509Certificate']

FORMATTERS = ['XML',
              'HTML',
              'JSON']

# Add features based on Python version
if sys.version_info.major == 3:
    if sys.version_info.minor >= 6:
        HASHS.append('BLAKE2b')
        HASHS.append('BLAKE2s')
    if sys.version_info.minor >= 4:
        ENCODINGS.insert(3, 'Base85')

@@ -24,17 +24,17 @@
  = '0.9.
-1
+2
 '%0A%0AENCOD
@@ -488,16 +488,101 @@
 MISC = %5B
+%5D%0A%0Atry:%0A    import OpenSSL.crypto%0Aexcept ImportError:%0A    pass%0Aelse:%0A    MISC.append(
 'X509Cer
@@ -590,17 +590,17 @@
 ificate'
-%5D
+)
 %0A%0AFORMAT

Add X509 support only when pyOpenSSL is installed