public static byte[] decrypt(byte[] data, String key, String algorithm)
			throws InvalidKeyException, NoSuchAlgorithmException,
			InvalidKeySpecException, NoSuchPaddingException,
			BadPaddingException, IllegalBlockSizeException {
		Key k = toKey(SecurityCoder.base64Decoder(key), algorithm);
		Cipher cipher = Cipher.getInstance(DES);
		cipher.init(Cipher.DECRYPT_MODE, k);
		return cipher.doFinal(data);
	}