code: public static byte[] decrypt(byte[] text, Key key) throws DecryptionException {
          return decrypt(text, key, key.getAlgorithm());
      }
docs: Decrypts the given data using the given key. The key holds the algorithm used for decryption. If you are
  decrypting data that is supposed to be a string, consider that it might be Base64-encoded.
  
  @throws DecryptionException if the string cannot be decrypted with the given key