Extracted a CryptoService interface