private static String privateBase64Decoder ( String decode , int flags ) { if ( flags == - 1 ) { flags = Base64 . DEFAULT ; } byte [ ] data1 = Base64 . decode ( decode , flags ) ; String decodedBase64 = null ; try { decodedBase64 = new String ( data1 , "UTF-8" ) ; } catch ( UnsupportedEncodingException e ) { e . printStackTrace ( ) ; } return decodedBase64 ; }
Private decoder in base64