public void doTestAlgo(String algo) {
System.out.println("testing: " + algo);
Crypto c = CryptoFactory.get(algo);
KeyGenerator kg = c.getKeyGenerator();
Encoder e = c.newEncoder(kg.getEncodingKey());
Decoder d = c.newDecoder(kg.getDecodingKey());
System.out.println("--> bytes testing");
encodeBytes(e,d);
System.out.println("--> short string testing");
encodeString(e,d,"test");