@Override
    public String decrypt(final String key, final byte[] encryptData) throws Exception {
        byte[] decoded = Base64.getDecoder().decode(key);
        PrivateKey priKey = KeyFactory.getInstance(RSA).generatePrivate(new PKCS8EncodedKeySpec(decoded));
        Cipher cipher = Cipher.getInstance(RSA);
        cipher.init(Cipher.DECRYPT_MODE, priKey);
        return new String(cipher.doFinal(encryptData));
    }
@Test
    public void testDecrypt() throws Exception {
        assertThat(cryptorStrategy.decrypt(decKey, encryptedData), is(decryptedData));
    }