This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = angular.module('myApp', []); | |
app.controller('MainCtrl', function($scope) { | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// A hashing utility. | |
/// </summary> | |
public static class Hasher | |
{ | |
/// <summary> | |
/// Gets an HMAC SHA512 hash for some text. | |
/// </summary> | |
/// <param name="text">The text to hash</param> | |
/// <param name="salt">The salt to use in hashing.</param> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
TokenTesting(); | |
} | |
private static void TokenTesting() | |
{ | |
// create a private key to use in our tests. |
NewerOlder