Пример #1
0
 @Nonnull
 public static HashProvider<String, String> newAndroidSha512StringHashProvider() {
   return TypedHashProvider.newInstance(
       newAndroidSha512ByteHashProvider(),
       StringDecoder.getInstance(),
       ABase64StringEncoder.getInstance());
 }
Пример #2
0
 @Nonnull
 public static Cipherer<String, String> newAndroidAesStringCipherer(final byte[] initialVector) {
   return TypedCipherer.newInstance(
       newAndroidAesByteCipherer(initialVector),
       StringDecoder.getInstance(),
       StringEncoder.getInstance(),
       ABase64StringDecoder.getInstance(),
       ABase64StringEncoder.getInstance());
 }
Пример #3
0
 @Nonnull
 public static Cipherer<String, String> newAndroidAesStringCipherer() {
   return TypedCipherer.newInstance(
       newAndroidAesByteCipherer(),
       StringDecoder.getInstance(),
       StringEncoder.getInstance(),
       ABase64StringDecoder.getInstance(),
       ABase64StringEncoder.getInstance());
 }