public static void decryptFile ( File encryptedFile , File result , String password ) throws IOException { byte [ ] b = readBytes ( encryptedFile ) ; String decryptedImageString = new RNCryptorNative ( ) . decrypt ( new String ( b ) , password ) ; byte [ ] decodedBytes = Base64 . decode ( decryptedImageString , 0 ) ; writeBytes ( result , decodedBytes ) ; }
Decrypts file using password