Oculus is alive again

Together with the blog, I also revived the Oculus project. I put it on GitHub, to make it all easily accesible and include version control for myself. If you want to use or collaborate, you can find it at: https://github.com/derpflanz/oculusd While Googling a little, it might be a good idea 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)) {     Console.WriteLine(“Data is OK”); } else {     Console.WriteLine(“Data is Read more…