Implement a few Android crypto methods.