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> The solution was not resolved using any flax class Sun clas (such as they are For example, use. If you want to paste on the normal Java API, then 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}
sun. * named package names distributed with JR) are not part of the Java API and should not be used.
java.util.Base64 (from Java 8 forward) or
javax.xml.bind.DatatypeConverter
नौसिखियों के लिए जावा कंप्यूटर प्रोग्रामिंग उदाहरण
ReplyDeleteस्टेटमेंट सैंपल प्रोग्राम जारी रखें