public static void encryptAsync ( String raw , String password , RNCryptorNativeCallback RNCryptorNativeCallback ) { byte [ ] encrypted ; try { encrypted = new RNCryptorNative ( ) . encrypt ( raw , password ) ; RNCryptorNativeCallback . done ( new String ( encrypted , "UTF-8" ) , null ) ; } catch ( Exception e ) { RNCryptorNativeCallback . done ( null , e ) ; } }
Encrypts raw string and returns result via callback