add crypto to pinService and tests

- adds crypto to pinService and tests