public String value() { if (data == null) return null; return MString.toString(MCrypt.unobfuscate(data)); }
/** * Decode the data using Base91 byte encoding and the private key from 'key' using a RSA like algorithm. It's not the * java implementation used. * * @param key private key * @param in the encoded data presentation * @return the decoded string * @throws IOException */ public static String decode(AsyncKey key, String in) throws IOException { BigInteger[] benc = MBigMath.fromBase91Array(in); byte[] enc = MCrypt.decodeBytes(key, benc); return MString.toString(enc); }
String[] out = new String[a.length]; for (int i = 0; i < a.length; i++) out[i] = MString.toString(a[i]); return out;
/** * Decode the data using Base91 byte encoding and the private key from 'key' using a RSA like algorithm. It's not the * java implementation used. * * @param key private key * @param in the encoded data presentation * @return the decoded string * @throws IOException */ public static String decodeWithSalt(AsyncKey key, String in) throws IOException { BigInteger[] benc = MBigMath.fromBase91Array(in.substring(1)); byte[] enc = MCrypt.decodeBytes(key, benc); if (in.charAt(0) == 'A') { byte[] enc2 = new byte[enc.length-1]; byte salt = enc[0]; for (int i = 0; i < enc2.length; i++) enc2[i] = MMath.subRotate(enc[i+1], salt); return MString.toString(enc2); } else throw new IOException("Unknown salt algorithm"); }
Object val = msg.getObjectProperty(key); if (key.contains("assword")) val = "[***]"; sb.append(" ").append(key).append('=').append(MString.toString(val)).append('\n'); Object val = ((MapMessage) msg).getObject(key); if (key.contains("assword")) val = "[***]"; sb.append(" ").append(key).append('=').append(MString.toString(val)).append('\n');