An encrypt test for bitcore