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
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
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
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
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
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
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
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
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
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
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
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
The following artical is all you need http://samples.gotdotnet.com/quickstart/howto/doc/Interop/Building_Samples_COM2NET.aspx[^] Forever Developing
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
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
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
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
You can use the stored proc sp_primarykeys Best of luck Forever Developing
Application.Goto (ActiveWorkbook.Sheets("Sheet2").Range("E6")) Forever Developing
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
//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