Android AES Decrypt decryptBase64(String encryptBase64)

Here you can find the source of decryptBase64(String encryptBase64)

Description

decrypt Base

Declaration

public static byte[] decryptBase64(String encryptBase64)
            throws Throwable 

Method Source Code

//package com.java2s;
import javax.crypto.Cipher;

import android.util.Base64;

public class Main {
    private static Cipher decryptCipher;

    public static byte[] decryptBase64(String encryptBase64)
            throws Throwable {
        if (encryptBase64 == null || encryptBase64.trim().length() < 1) {
            return null;
        }//from  w ww  .j  a  va2 s  . c o  m

        byte[] encryptData = Base64.decode(encryptBase64, Base64.NO_WRAP);
        return decryptCipher.doFinal(encryptData);

    }
}

Related

  1. decrypt(byte[] raw, byte[] encrypted)
  2. decrypt(byte[] raw, byte[] encrypted)
  3. decrypt(byte[] raw, byte[] encrypted)
  4. decrypt(byte[] textBytes, String key)
  5. decryptBase64(String content, String key)
  6. decryptBase64Text(String key, String src)
  7. decryptBytes(String key, byte[] src)
  8. decryptBytes(String seed, byte[] encrypted)
  9. decryptBytes(byte[] data, byte[] key)