| | |
Need help with completion of Cryptography program
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
Hi guys im creating this cryptography program. And was wondering how to connect three conditions together.
*Forgot to mention it is in c# language*
I got a place where i can input a key and confirm the key, Those are already linked together when u click the encrypt button it will verify that both text areas are equivalent.
A combobox to choose the type of encryption &
The Encrypt buton to give the order to encrypt
I dont know how to go about and connect everything together. Can someone help me please?
I do have the code for the encryption and the types of encryption and implementation techniques. All i have to do is connect those 3 things together. I could have very well chose for for every one to open in a new form but i dont like the idea.
Anyways, Thanks in advance!
And if you want more info on the code just ask me and ill write back to ya!
*Forgot to mention it is in c# language*
I got a place where i can input a key and confirm the key, Those are already linked together when u click the encrypt button it will verify that both text areas are equivalent.
A combobox to choose the type of encryption &
The Encrypt buton to give the order to encrypt
I dont know how to go about and connect everything together. Can someone help me please?
I do have the code for the encryption and the types of encryption and implementation techniques. All i have to do is connect those 3 things together. I could have very well chose for for every one to open in a new form but i dont like the idea.
Anyways, Thanks in advance!
And if you want more info on the code just ask me and ill write back to ya!
:eek: Come and visit SharpCreativity.com :eek:
There are several ways to do that, I would go about it this way:
So maybe I'm not understandin your question properly. But that's how you could do, just use a switch statment to find out which encryption type to use, then do the statements from there.
ASP.NET Syntax (Toggle Plain Text)
// the encrypt button event handler encrypt_Click(object sender, EventArgs e) { // assuming you've named the text box for the key txtKey and the // combo box for the encryption type cboEnc do the following string key = txtKey.Text; string encType = cboEnc.SelectedItem.ToString(); switch(encType) { case "FirstEncryptionType": // use this encryption; break; case "SecondEncryptionType": // use this encryption break; default: // use the final incryption type break; } }
WoW thats great!
Now i was able to add this part of the code in but how would i go about after chosing the encryption type and actually clicking the ENCRYPT button to actually encrypt the file opened... I do have the algorithm.
Now i was able to add this part of the code in but how would i go about after chosing the encryption type and actually clicking the ENCRYPT button to actually encrypt the file opened... I do have the algorithm.
:eek: Come and visit SharpCreativity.com :eek:
![]() |
Similar Threads
- Basic Cryptography Program Help (Python)
- Help with crypto program (C#)
Other Threads in the ASP.NET Forum
- Previous Thread: Getting Garbage data while using asp.net and oracle 8i 1.5
- Next Thread: Page hangs or displays connection pooling max size error
| Thread Tools | Search this Thread |
.net 3.5 ajax alltypeofvideos appliances asp asp.net bc30451 beginner box browser businesslogiclayer button c# cac checkbox class commonfunctions control countryselector dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol expose fileuploader fill findcontrol flash formatdecimal formview gridview gudi iis javascript list listbox login microsoft mouse mssql nameisnotdeclared news novell numerical opera panelmasterpagebuttoncontrols problem radio redirect registration relationaldatabases reportemail save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visualstudio vs2008 web webapplications webdevelopemnt webdevelopment webprogramming webservice wizard xsl youareanotmemberofthedebuggerusers





