Computing.Net > Forums > Programming > VB 6 Encryption/Translation

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

VB 6 Encryption/Translation

Reply to Message Icon

Name: Mark Long
Date: May 6, 2004 at 10:16:26 Pacific
OS: win 98
CPU/Ram: 300/512
Comment:

I have a couple of list boxes on my form and my task is to create an encoder/translator. The idea is that I type standard text into one list box and when I click a button it displays the ASCII equivalent in the other list box. The program has to work both ways, converting/translating and back. I also need the program to encrypt the code so say A is ASCII 32 I would like say to add 4 to this figure making A = 36 that way creating basic encryption. Any type of encryption can be used but I just used this as an example. Thank you

Regards

M



Sponsored Link
Ads by Google

Response Number 1
Name: StuartS
Date: May 6, 2004 at 12:59:53 Pacific
Reply:

You need to be looking at the Asc function. This converts a character to its ASCII equivalent.

BTW. ASCII 32 is the code for space. Uppercase A is 65 and lowercase A is 97. Also, you cannot type text into a ListBox. You use the AddItem function to add stuff to a list box. You can type into a Text box and then add the text to a ListBox with the AddItem function.

Stuart


0

Response Number 2
Name: Mark Long
Date: May 6, 2004 at 15:27:50 Pacific
Reply:

Thank you for your interest. The above was only meant as an example albeit poor, and I have the basics but this one is above my knowledge of VB. What I have been given is the task to create an enigma type coding program but only as complex as I know how? I've been given this info:

Take a text file, encrypt it into another form.

Has to be able to de - crypt as well.

user type in source doc name to get file.

My program is to read the text file line by line converting each character as it goes.

Create an algorythm to convert each char.

Now it's just a case of the encrypting. The example given uses ascii as the crypt/sipher. I may use that or other method.

Regards

M


0
Reply to Message Icon

Related Posts

See More


window on webpage progress bar not moving w...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VB 6 Encryption/Translation

VB 6 ascii encryption www.computing.net/answers/programming/vb-6-ascii-encryption/10530.html

VB 6 decompiler www.computing.net/answers/programming/vb-6-decompiler/3040.html

Vb 6 Compiler Needed www.computing.net/answers/programming/vb-6-compiler-needed/1223.html