Triple DES encryption string generates "\n"

Issue While encrypting a string, it generates ‘\n’ at end of the string. This is how I’m doing encryption public static String encrypt(String plainText) throws Exception { byte[] tdesKeyData = Consts.getSecretKey().getBytes(); byte[] myIV = Consts.getInitializationVector().getBytes(); SecretKeySpec myKey = new SecretKeySpec(tdesKeyData,

Continue reading