Format:
Recent snippets matching tags of rsa
public class Crypt { public static string OpenSslSign(string privateKeyFile, string content) { var pkey = new PrivateKey(); pkey.LoadPemFile(privateKeyFile); string pkeyXml = pkey.GetXml(); var rsa = new Rsa(); bool success = rsa.UnlockComponent("30-day trial"); if (success != true) {
179 Views
no comments
//სურათის ობიექტის კონვერტაცია ბაიტების მასივში. private byte[] ImageToByteArray(System.Drawing.Image imageIn) { MemoryStream ms = new MemoryStream(); imageIn.Save(ms, System.Drawing.Imaging.ImageFormat.Gif); return ms.ToArray(); } //სურათის ბაიტების მასივის კონვერტაცია სურათის ობიექტში private Image ByteArrayToImage(byte[] byteArrayIn) { MemoryStream ms = new MemoryStream(byteArrayIn);
373 Views
no comments
namespace SignAndEncryptXmlDocumentConsoleApplication { using System; using System.IO; using System.Security.Cryptography; using System.Security.Cryptography.Xml; using System.Xml; class Program {
599 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
