コード例 #1
0
        private void buttonHMAC256_Click(object sender, EventArgs e)
        {
            var hmacCrypto = new HmacCryptoService(this.textHMACSecret.Text);

            var hashedResult =
                hmacCrypto.ToBase64EncodedSha256(this.textHMACPayload.Text);

            this.textHMACOutput.Text = hashedResult;
        }
コード例 #2
0
 public ShopifyAuthController(
     OAuthApi oAuthApi,
     CredentialsRepository connectionRepository,
     InstanceContext connectionContext,
     ShopifyHttpContext shopifyHttpContext,
     IdentityService identityService,
     StateRepository stateRepository,
     HmacCryptoService hmacCrypto,
     ProvisioningService provisioningService,
     IPushLogger logger)
 {
     _provisioningService  = provisioningService;
     _identityService      = identityService;
     _oAuthApi             = oAuthApi;
     _connectionRepository = connectionRepository;
     _connectionContext    = connectionContext;
     _shopifyHttpContext   = shopifyHttpContext;
     _stateRepository      = stateRepository;
     _hmacCrypto           = hmacCrypto;
     _logger = logger;
 }