java - Getting no output for BASE64Encoder() -


I have tried to test every stage of my program, I get the output, but when I work BASE64Encoder () I am not completely visible even on the BASE64Encoder () line, stuck eclipse, I want to help you get rid of this problem, the code below is given < pre> FindMeaning Private Zero (HttpServletResponse resp, String Plane) NoSuchAlgorithmException, InvalidKeySpecException, NoSuchP addingException, InvalidKeyException, InvalidAlgorithmParameterException, UnsupportedEncodingException, IllegalBlockSizeException, BadPaddingException, IOException {string text = plain throws; String key = "ezine 8547"; KeySpec keySpec = new PBEKeySpec (key.toCharArray (), salt, iterationCount); // SecretKey key working = SecretKeyFactory.getInstance ("PBEWithMD5AndDES") generateSecret (keySpec). // Working // Cipher Algorithm ParameterPP Parachip = Create parameter = new PBPMATOR SPC (salt, currency number); ecipher = Cipher.getInstance (key1.getAlgorithm ()); // ecipher.init (Cipher.ENCRYPT_MODE, Key1, paramSpec); // string charset = "UTF-8"; Byte [] = text.getBytes (charset); // working byte [] out = ecipher.doFinal (in);; // working string encStr = new sun.misc.BASE64Encoder () (out) encode; // Unknown error transmission response (resp, "pincode city:" + enquex tr); // output is not found}

The solution was not resolved using any flax class Sun clas (such as they are sun. * named package names distributed with JR) are not part of the Java API and should not be used.

For example, use.

If you want to paste on the normal Java API, then java.util.Base64 (from Java 8 forward) or javax.xml.bind.DatatypeConverter

Comments

  1. नौसिखियों के लिए जावा कंप्यूटर प्रोग्रामिंग उदाहरण
    स्टेटमेंट सैंपल प्रोग्राम जारी रखें

    ReplyDelete

Post a Comment

Popular posts from this blog

jasper reports - How to center align barcode using jasperreports and barcode4j -

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -