add crypto to pinService and tests
Merge pull request #2 from matiu/gus/pin

add crypto to pinService and tests