Exemplo n.º 1
0
 @Nonnull
 public static Cipherer<String, String> newAndroidAesStringCipherer(final byte[] initialVector) {
   return TypedCipherer.newInstance(
       newAndroidAesByteCipherer(initialVector),
       StringDecoder.getInstance(),
       StringEncoder.getInstance(),
       ABase64StringDecoder.getInstance(),
       ABase64StringEncoder.getInstance());
 }
Exemplo n.º 2
0
 @Nonnull
 public static Cipherer<String, String> newAndroidAesStringCipherer() {
   return TypedCipherer.newInstance(
       newAndroidAesByteCipherer(),
       StringDecoder.getInstance(),
       StringEncoder.getInstance(),
       ABase64StringDecoder.getInstance(),
       ABase64StringEncoder.getInstance());
 }