package testing; import javax.crypto.Cipher; public class CyrptoTest { public static String getMaxKeyLength( String s ) { try { return "OK " + Cipher.getMaxAllowedKeyLength( s ); } catch ( Exception x ) { return "ERROR " + x.getMessage(); } } /** * @param args */ public static void main(String[] args){ // TODO Auto-generated method stub System.out.println( getMaxKeyLength( "RC5" ) ); } }