Пример #1
0
 public static void main(String[] args) throws Exception {
   System.out.println(
       "Encoded password: "******"Config_RsA+")));
   System.out.println(
       "decoded password: "******"-4c9aff763d955675")));
 }
Пример #2
0
 public static char[] decode(String secret)
     throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException,
         BadPaddingException, IllegalBlockSizeException {
   return SecureIdentityLoginModule.decode(null, secret).toCharArray();
 }