I hereby claim:
- I am brainded on github.
- I am brainded (https://keybase.io/brainded) on keybase.
- I have a public key ASAiGbLhWvuZ1MCQwtqngpHc1GMEwf34ogsl4NrfcKpGGQo
To claim this, I am signing this object:
| using System; | |
| using System.Text; | |
| using System.Security.Cryptography; | |
| public static class WebhookUtility | |
| { | |
| public static bool IsVerified(string payload, string sharedSecret, string virtuousSignature) | |
| { | |
| byte[] valueByteArray = Encoding.UTF8.GetBytes(payload); | |
| byte[] secretByteArray = Encoding.UTF8.GetBytes(sharedSecret); |
| using System; | |
| using System.Globalization; | |
| using System.Text.RegularExpressions; | |
| using System.Text; | |
| using System.Security.Cryptography; | |
| public class Program | |
| { | |
| public static void Main() | |
| { |
| <?php | |
| function getHmacToken($applicationKey, $requestHttpMethod, $requestUrl) | |
| { | |
| $privateKey = "VIRTUOUS_API_KEY"; | |
| $nonce = uniqid(); | |
| $timestamp = (string)time(); | |
| $toBeHashed = strtolower($applicationKey . urlencode($requestUrl) . $requestHttpMethod . $nonce . $timestamp); | |
| $hmac = getHashedUrl($toBeHashed, $privateKey); | |
| $authorization = "Hmac " . $applicationKey . ":" . $hmac . ":" . $nonce . ":" . $timestamp; |
I hereby claim:
To claim this, I am signing this object:
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| namespace BobsBurgers | |
| { | |
| internal static class AsyncExtensions |
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using System.Web; | |
| using System.Web.Mvc; | |
| using TwitterPoc.Services; | |
| namespace BobsBurgers.Controllers | |
| { |
| { | |
| "id": "32434k234jlk234l2k3j4j234l", | |
| "status": "success", | |
| "authorEmail": "[email protected]", | |
| "author": "author", | |
| "deployer": "GitHub", | |
| "message": "something something darkside", | |
| "progress": "", | |
| "startTime": "2014-08-15T23:17:00.7435764Z", | |
| "endTime": "2014-08-15T23:17:29.0472028Z", |
| using System; | |
| using System.Configuration; | |
| namespace Example.Configuration | |
| { | |
| internal class BobsBurgersConfiguration : ConfigurationSection | |
| { | |
| /// <summary> | |
| /// The BobsBurgers ConfigurationSection name. | |
| /// </summary> |
| var authorizationToken = $("#antiforgerytoken").val(); | |
| $.ajax({ | |
| type:"POST", | |
| beforeSend: function (request) { | |
| request.setRequestHeader("RequestVerificationToken", authorizationToken); | |
| }, | |
| url: "entities", | |
| data: { | |
| Something: "something" |
| namespace MvcEssentials | |
| { | |
| using System; | |
| using System.Collections.Specialized; | |
| using System.Configuration; | |
| using System.Web.Mvc; | |
| /// <summary> | |
| /// Conditionally Require Https Attribute | |
| /// </summary> |