Bart on safety

When we launched Snøg Avalanche Buddy, we also decided to post the app on some winter sports forums. The reactions we got there were mixed, but mainly very negative. Part of the negativity was aimed at the safety of the Read more…

C#.NET snack: sign data with RSA

Create keys: var csp = new RSACryptoServiceProvider(keyStrength); var privateKey = csp.ExportCspBlob(true); var publicKey = csp.ExportCspBlob(false); Sign data: var csp = new RSACryptoServiceProvider(); csp.Clear(); csp.ImportCspBlob(File.ReadAllBytes(privateKeyFile)); var sig = csp.SignData(data, new SHA1CryptoServiceProvider()); Verify data: csp.Clear(); csp.ImportCspBlob(File.ReadAllBytes(publicKeyFile)); if (csp.VerifyData(data, new SHA1CryptoServiceProvider(), sig)) { Read more…