protected static String generateSecret ( Random random ) { String charsetForSecret = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" ; StringBuilder stringBuilder = new StringBuilder ( 64 ) ; for ( int i = 0 ; i < 64 ; i ++ ) { int charToPoPickFromCharset = random . nextInt ( charsetForSecret . length ( ) ) ; stringBuilder . append ( charsetForSecret . charAt ( charToPoPickFromCharset ) ) ; } return stringBuilder . toString ( ) ; }
!!!! Only for testing purposes !!!!