* @throws InvalidKeyException
*
* @throws Exception
*/
public static String decrypt(final byte[] key, final String content) throws Exception {
final byte[] decodedContent = new UrlBase64().decode(URLDecoder.decode(content, ASCII.displayName()));
final byte[] iv = extractIV(decodedContent);
final byte[] decrypted = new CryptoBox(key).decrypt(iv, extractContent(decodedContent));
return new String(decrypted, ASCII);
}