def _sun_jce_pbe_decrypt(data, password, salt, iteration_count):
    key, iv = _sun_jce_pbe_derive_key_and_iv(password, salt, iteration_count)

    from Crypto.Cipher import DES3
    des3 = DES3.new(key, DES3.MODE_CBC, IV=iv)
    padded = des3.decrypt(data)

    result = _strip_pkcs5_padding(padded)
    return result
Decrypts Sun's custom PBEWithMD5AndTripleDES password-based encryption scheme.
dataset/ETHPy150Open doublereedkurt/pyjks/jks/jks.py/_sun_jce_pbe_decrypt