VS 2008 - CipherText Encryption (User Input)
Jun 15, 2010
I'm a complete beginner to programming alone, let alone VB.net. What I need to do is encrypt a block of text inputted by a user using a keyword that will also be inputted by the user. This is all to be done using ciphertext, so naturally the user would be informed the keyword can not have any repeating characters. I figure the English alphabet will be predefined in capitals and lowercase, then the keyword will be read character by character, removing those characters from the alphabet array and then appending them to the end of it (to create the new encrypted alphabet). How to read the keyword character by character, and then removing the corresponding letter from the alphabet. The best I can think is to check each character of the keyword against each character of the array which I'm sure is much more work than I need to do.
View 1 Replies
ADVERTISEMENT
Jun 21, 2011
I have set up a method in vb.net and in xcode for encrypting a string using as far as i can tell the same parameters for an AES encryption.I've looked all over the place but cannot find information on whether they use the same encryption algorithm and settings.
this is the vb.net code:
Dim encryptAES As New AesCryptoServiceProvider()
Dim encoding As New UTF8Encoding()
Dim encryptor As ICryptoTransform
encryptAES.Key = encoding.GetBytes("12345678901234567890123456789032")
encryptAES.IV = encoding.GetBytes("1234567890123416")
encryptAES.Mode = CipherMode.CBC
[Code]...
View 1 Replies
Jan 17, 2010
I have an input and an output, but i would like to know what how to calculate/find the string encryption in between.
Input: 22ac24c481690dd5d90973c6697624ec
String: ??? Unknown
Output: cc28641637656a42e092b61d3e67af0d
[URL]
View 6 Replies
May 16, 2011
I've been trolling for a long time now and have decided to register as I finally have some time to start jumping into VB. The last time I coded VB, the current version was VB 4. I've been out of programming for a good while now and considered myself a beginner (tutorial example coder haha).
My question is: Where is a good place to start learning VB.NET?
I know it's an often asked and answered question - but let me give you a bit more information so more specialized replies might be given.
I'm in INFOSEC/COMSEC and would like to (eventually) develop a program that contains a DB of information that is read by the application and saves input information into a DB (encrypted) as well. The program will be a 800-53 C&A control assessment program; used for tracking system compliance for federal information systems. I would like to be able to develop such a tool to make my life easier at work instead of using Excel spreadsheets to track everything.
I would like to learn:
- Input / Output methods and validation (for secure coding)
- Read/Write DB Encryption (RSA or other 128-bit) for user input information
- Ability to generate PDF reports from the primary keys and data sets from the above DB
My goal is to create a program that allows a user to install the program, setup a 'master' account that a serial/key has been generated for - that master account is then allowed to create new projects (progress saved in DB). A project asks the user certain questions pertaining to information systems and takes the input and saves it into the DB (encrypted). When the assessment is completed, I would like the program to be able to generate a PDF report from the DB (from a layout template I created).
View 10 Replies
Oct 7, 2010
I am using Visual Basic 2008 and I have two text boxes so people can input information and I am trying to get it so it will run a code with user credentials. However the code is giving me an error saying that "Option Strict On disallows late binding."Here is my code so far:
Public Class CIBNA Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
[Code]...
View 4 Replies
Mar 18, 2010
I have an assignment that is supposed to accept user input of random numbers. The only part I'm struggling with is I'm supposed to make copies of the array after the user is done inputting the numbers. These copies has to be sized exactly to how many numbers the user input. Am I supposed to use a counting variable and if so how?
View 5 Replies
Apr 1, 2011
How would you let the user of a program enter an unlimted amount of numbers ranging from 0-100, and then have the program tell the user the highest and lowest values from the data they entered?The user would enter the data in when they clicked a button, and the program would sort the data out when another button was clicked.
View 8 Replies
Jul 10, 2009
I am writing an app that uses a combo box to list file types for a user to select from. Because a complete list of all options is both impossible and wildly unwieldy, I am only providing about 10 common extensions. I want the user to be able to type in their own file extension if the one they need is not listed. the first item in the combo box is empty by default, but during testing when i type something in their to use as my selection, i get the exception "Object reference not set to an instance of an object." pointed at extensionComboBox.SelectedItem.ToString
View 7 Replies
Dec 28, 2009
ive been steaming on this one for quite some time. Ive got a program that relies on remote control of the computer, and i need to be able to take a webcam image without the user having to press buttons etc. So far, ive gotten to the point where i can find my webcam, and with the help of a button, start a preview, then take the picture and save it as a jpeg.Problem is, when you press the button to start the preview, another dialog box shows up (not related to my code) prompting me to select a video source..Im confused kus it seems as though the list i find on form_load does nothing at all if when i press the button it prompts me with the same list.Well you can infer from this that i cannot use the btnstart_click(sender, e) on form_load because it opens a dialog that wont close until i press ok, and i already tried to sendkeys enter, it didnt work.anyone have any idea how i can either alter my code, or make new code to take a web cam image, and save it with no user input?
[code]...
View 2 Replies
Jan 1, 2010
I have a form with multiple panels which hide/show as the user progresses through and inputs data. After they enter data in the first panel, I want a label in the next panel to be equal to one of their inputs. For example, in the first panel they enter their name in Textbox1. They hit next and it hides panel1 and shows panel2. Then I want Label1 in the next panel to be Textbox1 (their name).
View 1 Replies
Sep 26, 2011
Well I'm trying to have a if statement where when the user inputs the Title of the book [Title] then if it contained any letters then this message box would pop up. I also have another if statement where if nothing is there then messagebox would say that please input a name. [Code]
View 4 Replies
Jul 28, 2011
i have a combo box without a list of item now i want to do is when a user input a number or text in combo box the text value of the combo box will be saved and when the user input the same number the combo box will not save the same text value. and when the user logout and login back again i want to load the list of item that he or she inputted earlier in the combo box.
View 7 Replies
Nov 16, 2010
I have a form with 12 text boxes that a user must fill. I need then by pressing a button to promt for the save directory and save the input as ".".txt file. Moreover i need each line of the txt to correspond to each one of the txtboxes. So the input to the first box will be the first line of the txt file,...the input of the ninth box the ninth line of the txt file.
View 15 Replies
Jan 5, 2010
any way to stop a for loop untill i have user input, once the input is correct continue the for loop, is that possible at all?
View 4 Replies
Apr 14, 2010
How do I get numbers typed into a text box to be feed into my code and then the code to be ran?Below is the code that I want the information from a text box to be fed into. With the (0, 50) being the numbers.I will have a form set up like this, A button labeled Generate. 3 Text boxes total, 2 of them side by side with one being low and one high. For example The user will input 5 in the low box at 100 in the high box. Hitting generate the numbers will then be inserted into code and the result being shown in the 3rd text box.
Now what is the code that I'm looking for that will help me take information from TextBox1 and TextBox2 and insert into the (XXXX, XXXX) field in my buttons code?
View 3 Replies
Jan 16, 2009
I am trying to see find out if a user has been inactive for a certain amount of time by mouse and keyboard events. I want to be able to find this from windows not my form. I am lost as to where to start. I came across this "GetLastInputInfo Function" but am not sure if that is right and/or how to use it.
View 18 Replies
Jan 15, 2011
I need some help with the input validation of my application. Attached is the code that I have written as well as a screenshot of the front end. I specifically need input validation to verify that the user selected input for cbLengthOfStay is a number between 1-10 as well as input validation to verify the user input for txtMedication, txtSurgicalCharges, txtLabFees and txtRehabilitation is a positive numerical number. Please feel free to critique my attached code. [Code]
View 2 Replies
Feb 19, 2012
If my Category and Forum selection is incorrect I am sorry and feel free to move it. I'd like to have the users input in the message box that will show. For example: There is a textbox and the user puts in their name as Bob. Then the message box would be: What my main goal is, is being able to include the users input they type inside the textbox inside the message box.
View 6 Replies
May 21, 2012
I have my code here I am trying to mod it so users can login into a database that user MD5 encryption
[code]...
I have a read a few things on how to do it but, I really don't understand.
View 6 Replies
Oct 6, 2011
I am using the code from the following link. Basically I am using the built in functions in visual basic for encryption (Cryptography). Seeing as there is a lot of code for it, I posted a link to the code I am using.
[URL]
I get what this is doing and how it is doing it...for the most part. My question is how do you let the user set the key to be used instead of it randomly generating one? One of the reasons I want this over the random key is that the user will be able to remember it easier and the key generated sometimes has weird characters in it that not everyone will no how to use. I have tried everything I can think of.
The encryption works good, all I am using it for is to encrypt/decrypt a text document. If this is not too good of an encryption, that does not matter as I am not using it to encrypt any highly sensitive information. All I need is a way to be able to allow the user to set the key, but every time I try to pass a string through the encryption() method instead of a generated key (in the generateKey() method) it will give me an error.
View 2 Replies
Mar 30, 2009
How to generate code from user input. In Visual Studio 2008, Visual Basic. My script always begins with:
Code:
function Init(Quest)
Then from here a user would input a quest name, type and zone in a interface using windows forms.
Ex:
Code:
RegisterQuest(Quest, "Kill Zombies", "Heritage", "Firestorm")
end
This part a user would enter in his interface what would an NPC say if accepted.
[Code] .....
What I need is a few text boxs that a user can input "Kill Zombies" or whatever they like and when they push a generate button it will create a file with a .quest extension. All of the code remains the same except for the quotes that would be the user input from the interface. Basically everything in quotes can be changed by the user in an interface. I have created my own functions for when a user accepts, deny and complete a quest. The user just needs to input what should happen then click a generate button to throw it all together as a .quest file to be saved in his or her quest folder for the server to call on later.
I also have many other functions like:
AddQuestRewardFaction --- (Quest, Faction ID, Amount)
AddQuestRewardCoin --- (Quest, Copper, Silver, Gold, Plat)
AddQuestStepObtainItem --- (Quest, Step ID, Description, Quantity, Percentage, TaskGroupText, Item ID(s))
Etc
I would also like to have these available on the UI but wont generate unless a user checks a box to add them or there is a box already for them but wont step into the code unless the user enters something into the box.
View 4 Replies
Nov 3, 2011
Option Strict On Public Class Form1 Private Sub btnDistance_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDistance.Click 'The btnEnterSpeed click event accepts and displays up to ten speeds from the user'and then calculates and displays average speed
[Code]...
I cannot figure out how to incorporate the number of days into the input box then get it to loop and count the number of times the User inputs in the number of days. Then I have to incorporate it into the equation to get the total distance D = MPH * Hours. What I have right now wil not count up the number of days and locks up after I input one number and will not add anything to the listbox. Because I also have to make sure that they cant add nonnumaric values and the number of hours per day cannot exceed 20. I have put things in and taken them out but it has been 2 days and I am lost now
View 1 Replies
Apr 1, 2010
iam currently working on my uni project and i have encountered a problem with valadation section.My system displays a message telling the user to input any fields that they have missed out on, listing the name of the field. However as these IF functions are in order the user must input the data in the order of how it is in the code. for example if the "consweight" is inputed and the calculate button is pressed, it thinks that all valadation above it has occured, when those fields are still empty.
[code]...
View 1 Replies
Jul 14, 2009
I'm trying to save what the user types in the vb code Dim user as Inputbox("") for example in a .txt file i can save the textbox and listbox but i cnt figure out how to save the inputbox i really need this to be saved the most.
View 7 Replies
Feb 11, 2011
I am creating a form for work where managers can report when they find a customer's personal information laying around on a desk (we work at a call center where agents answer calls for a wireless cell phone provider, so we take personal information security very seriously). Anyway, I am wondering if there is a way to have a text box autofill with that manager's windows username (since they will need to be logged into their own profile to use the form).
View 2 Replies
Mar 11, 2010
I need something tje user can type in data to such a parts QTY cost etc. There are no predefined parts list so the user can enter any part name/Number and there is no limit to amount of parts that can be entered.
Does anyone have any idea what might be useful. It was thinks of a listview bu i can't see that you can type into that. I cant use comboboxs because there are no predefined list and i know there is some way to generate text at runtime (i think) but i don't know how to do it and i would prefer a clearer approach.
View 3 Replies
Aug 21, 2009
Quote:
Originally Posted by kleinma
Encryption would work fine, so long as it is symmetrical and done prior to storing the info in the setting, and decrypted after reading the setting back in.
The key or iv for the encryption (which is a series of bytes) could be generated from a user defined password, making it so the key used to decrypt is never stored even in the compiled application. Only providing the main password would provide the key to decrypt the data, limiting the attack surface to pretty much just brute force dictionary attacks.
I think that is probably a bit beyond the scope of this question though, he probably needs to start just saving and recalling data properly.
How would one go about doing this? I've read a little about encryption and I even have a demo program, I just don't understand the overall process of this. (I included the OP in the topic's title because it was his idea, and he might be able to explain it the best).
View 2 Replies
Nov 2, 2009
I am making a Gmail notification program that handles multiple accounts.The user will, obviously, have to input their authentication information for each email account so that the program can save it to login to Gmail with.
What is the best way to encrypt something like that since this information will have to be saved in their harddisk?
View 7 Replies
May 28, 2009
I want to try and use the new encryption algorithms provided with .NET 3.5. Any links or examples for how to use one of them to encrypt xml content?
As written on msdn site is:
The following algorithms are included:
Advanced Encryption Standard (AES) with key sizes of 128 and 256 bits for encryption.
Secure Hash Algorithm (SHA-256 and SHA-384) for hashing.
Elliptic Curve Digital Signature Algorithm (ECDSA) using curves of 256-bit and 384-bit prime moduli for signing. This algorithm is provided by the ECDsaCng class. It allows you to sign with a private key and verify with a public key.
Elliptic Curve Diffie-Hellman (ECDH) using curves of 256 and 384-bit prime moduli for key exchange/secret agreement. This algorithm is provided by the ECDiffieHellmanCng class.
View 4 Replies
Oct 21, 2009
Alright I am trying to make a little login system with encryption. I am trying to see if the user entered in there encryption key, if they did then they can input there account. Same thing with the password textbox. If they already entered in there encryption key then let them type in there password. I am trying to make it so if there text in encryption key then let them type in there account or if they didn't then let them put it in then let them type in there account.
Dim AccountInfo As String
Dim PasswordInfo As String
Dim EncryptionKey As String
'account textbox
[Code] .....
View 9 Replies