Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
N

Nicholas Cardi

@Nicholas Cardi
About
Posts
74
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Decrypt but not Encrypt
    N Nicholas Cardi

    John, I belive RSA is what your looking for. The basic idea is use the public key to encrypt the private key to decrypt. You can get the RSA class to export the key pair without the private key. Hope this helps ~Nick

    Forever Developing

    C# csharp design

  • Remote X509Certificates
    N Nicholas Cardi

    Mike, I am aware of how the SSL protocal works. What I am looking for is if someone on has implemented just the Handsake or X509 Certificate exhange portion of the SSL protocal. As the title of this topic suggets. ~Nick

    Forever Developing

    C# sysadmin cryptography tutorial question

  • Remote X509Certificates
    N Nicholas Cardi

    led mike, The public key exchange for SSL is done before the SSL connection is established. I belive this is how the protocal works (Maybe I'm wrong). That is the only portion of the SSL protocal that I am looking to implement. I not really interested in secure communication or ecrypted sockets. I just need the server to transfer me its SSL cert. ~Nick

    Forever Developing

    C# sysadmin cryptography tutorial question

  • Remote X509Certificates
    N Nicholas Cardi

    I know. I have given up hope. I think I am going to the route of setting up an SSLSocket just to get the certificate information from the web server. This seems like a waste of resources to me. ~Nick

    Forever Developing

    C# sysadmin cryptography tutorial question

  • Remote X509Certificates
    N Nicholas Cardi

    Does any one know how to get a remote web server to transfer its Certificate (X509Certifcate) to the local machine using Sockets? I need the public key from a given web server.

    Forever Developing

    C# sysadmin cryptography tutorial question

  • Public Key & Certificate Validation
    N Nicholas Cardi

    led mike, Thank for the information but I am not using sockets or streams. I have a set of files that are digitally signed and I want to make sure their signatures are valid. After getting the files and the digital signatures I need the URL's public key to validate the Signatures. Using Fiddler I noticed the following response on a 443 connect. However, I am not sure how this would translate to x509 certificate in C# code. ~Nick HTTP/1.1 200 Connection Established This is a HTTPS CONNECT Tunnel. Secure traffic flows through this connection. Secure Protocol: Tls Cipher: Rc4 128bits Hash Algorithm: Md5 128bits Key Exchange: RsaSign 1024bits Certificate: [Subject] CN=www.intellicheck.com, OU=Secure Link SSL, OU=Data Systems, O="Intelli-Check, Inc.", STREET=246 Crossways Park West, L=Woodbury, S=NY, PostalCode=11797, C=US [Issuer] CN=Network Solutions Certificate Authority, O=Network Solutions L.L.C., C=US [Serial Number] 00F36126851351E1E58CD16C5DA38A430C [Not Before] 9/5/2005 8:00:00 PM [Not After] 9/5/2008 7:59:59 PM [Thumbprint] BAF241B7E84E5663AE70D7470076EF1D0CAEF222

    Forever Developing

    C# csharp sysadmin security cryptography help

  • Public Key & Certificate Validation
    N Nicholas Cardi

    That namespace is used for code access security. I am interested in Public Key Encryption. I am look for a way to contact a web server and have it transmit me its public key. ~Nick

    Forever Developing

    C# csharp sysadmin security cryptography help

  • Public Key & Certificate Validation
    N Nicholas Cardi

    Does any know of a way in C# to contact a web server and get the public SSL certificate information? I know all of this is handled by web service calls over https but I need the certificate to do some offline processing outside of webservices. Any help would be greatly appreciated. ~Nick

    Forever Developing

    C# csharp sysadmin security cryptography help

  • Which encryption method to use?
    N Nicholas Cardi

    You could use a simple xor on the password. I think the standard way is to use a MD5 hash or SHA hash. You hash the user password and store the hash in the registry. After you get the plain text password from the user you then hash the password and then compare the hash value to the hash value stored in the registry. This way even if the registry is compromised the password is not stored in the clear. Forever Developing

    C / C++ / MFC c++ security windows-admin question

  • can i retrieve the primary keys of a table?
    N Nicholas Cardi

    Not sure why this is but I found a solution to you problem For i = 0 To ds.Tables(0).PrimaryKey.GetUpperBound(0) ComboBox1.Items.Add(ds.Tables(0).PrimaryKey(i).ColumnName()) Next it seems that when filling the schema you cannot refer to the table by its name but only by index number or the value "Table" Forever Developing

    Visual Basic database xml help question

  • Showing different forms depending on a treeview in vb.NET
    N Nicholas Cardi

    What you could do is make a panel for each unqiue ui view. When the tree view node is clicked you remove the old panel and add the new panel via the controls collection on the form. Forever Developing

    Visual Basic csharp

  • Managed in Unmanaged
    N Nicholas Cardi

    The following artical is all you need http://samples.gotdotnet.com/quickstart/howto/doc/Interop/Building_Samples_COM2NET.aspx[^] Forever Developing

    Visual Basic csharp workspace

  • Checking whether Excel is installed on the machine.
    N Nicholas Cardi

    You could do one of two things. 1) You could search for the installed files. Excel.exe 2) You could try an instance the excel object via com. Forever Developing

    Visual Basic csharp question

  • can i retrieve the primary keys of a table?
    N Nicholas Cardi

    I was not sure if you were using OLEDB or ODBC so I did it in OLEDB. Private Sub cmdFindPrimary_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdFindPrimary.Click Try Dim ConnString As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=V:\VBScratchPad\test.mdb;" Dim cn As OleDbConnection = New OleDbConnection(ConnString) cn.Open() Dim da As New OleDbDataAdapter("Select * from Test", cn) Dim ds As New DataSet("TESTING") da.FillSchema(ds, SchemaType.Mapped) For i As Integer = 0 To ds.Tables(0).PrimaryKey.GetUpperBound(0) Console.WriteLine(ds.Tables(0).PrimaryKey(i).ColumnName) Next Catch ex As ApplicationException MessageBox.Show(ex.ToString()) End Try End Sub Best of Luck Forever Developing

    Visual Basic database xml help question

  • Communication with controls between classes
    N Nicholas Cardi

    your problem is that you are creating a new instance of form1. You need to pass in the existing instance of form1 transfertext to take the existing instance public static string transfertext(System.Windows.Forms.Form x) { return x.txtFromSecondClass.Text; } usage string value = SecondClass.transfertext(this); best of luck Forever Developing

    C# csharp javascript graphics docker help

  • get size of picture folder??
    N Nicholas Cardi

    System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(@"C:\"); System.IO.FileInfo[] files = dir.GetFiles(); long totalsize = 0; for (int i = 0; i <= files.GetUpperBound(0); i++) { totalsize = files[i].Length; } MessageBox.Show(totalsize.ToString()); Best of Luck Forever Developing

    C# help csharp question

  • can i retrieve the primary keys of a table?
    N Nicholas Cardi

    You can use the stored proc sp_primarykeys Best of luck Forever Developing

    Visual Basic database xml help question

  • scroll to a certain row in Excel?
    N Nicholas Cardi

    Application.Goto (ActiveWorkbook.Sheets("Sheet2").Range("E6")) Forever Developing

    C# com question

  • Embedded User Control
    N Nicholas Cardi

    I would see no real issues except that you will need to install .NET Framwork on the all of the machines that need this functionality. Best of Luck Forever Developing

    C# java winforms com hardware tutorial

  • A list of pairs (string, int) + sorting
    N Nicholas Cardi

    //Wrap this in a command button click event System.Collections.ArrayList arylist = new ArrayList(); for (int i = 10; i >= 0; i--) { pairs values; values.stringvalue = i.ToString(); values.intvalue = i; arylist.Add(values); } IComparer comp = new MyCompare(); arylist.Sort(comp); for(int i = 0; i<=10; i++) { pairs values = (pairs)arylist[i]; MessageBox.Show(values.intvalue.ToString() + " " + values.stringvalue); } //end wrap private class MyCompare: System.Collections.IComparer { public int Compare(object x, object y) { pairs valuex = (pairs)x; pairs valuey = (pairs)y; if (valuex.intvalue < valuey.intvalue) return -1; if (valuex.intvalue > valuey.intvalue) return 1; return 0; } } private struct pairs { public string stringvalue; public int intvalue; } Forever Developing

    C# question csharp algorithms help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups