Added more crypto functions