How to use RNCryptor and Firebase?

0

I've been researching ways to encrypt user data from an Android application using Firebase. In this article the RNCryptor is recommended, however without implementation details. I found this question about iOS usage . How to do the same for Android?

(I also accept suggestions for other forms of encryption, as I have no experience with it.)

    
asked by anonymous 04.10.2017 / 16:57

1 answer

1

You can try using Base64 from the android itself.

import android.util.Base64;

private String CodeBase64 (String text) {         return Base64.encodeToString (text.getBytes (), Base64.DEFAULT) .replaceAll ("(\ n | \ r)", "");     }

private String DecodeBase64 (String textCod) {         return new String (Base64.decode (TextCode, Base64.DEFAULT));     }

    
04.10.2017 / 20:48