CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of rsa
C#
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) {
by Mikael Henriksson   August 31, 2010 @ 11:31pm
179 Views
no comments
 
C#
//სურათის ობიექტის კონვერტაცია ბაიტების მასივში.
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);
by Zviadi   March 24, 2010 @ 1:20pm
373 Views
no comments
 
C#
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
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate