473,770 Members | 2,153 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Make an Encryption Program

1 New Member
Hi,

I want to make a simple encryption program.

My idea is to have an input and an output text box. When the user presses a button the program will encode what is in the input text box and output it into the output text box. I also want to encrypt it with a secret key where the user enters a letter or set of letters into a separate text box which will effect the output. This process can be reversed to decrypt.

I have a few ideas but im hoping someone can help me out.

I have an idea maybe converting the input and key text to an integer, multiplying them which give a long number as an output but im not sure if that is possible.

If anyone has any ideas how i could go about making this id really appreciate it :)

I have a limited knowledge of VB but I have forgotten alot of it

Thanks
May 12 '10 #1
4 3710
Curtis Rutland
3,256 Recognized Expert Specialist
So, what is this for? Are you needing to encrypt a value in a way that you can reverse the value as well? Or are you just needing to hash a value (like a one-way encryption)?

The .NET Framework already provides tools to do both of these. The System.Security .Cryptography namespace has many useful tools already premade for you.

Honestly, the best resource I can point you towards is google:
http://www.google.com/search?hl=en&q=vb.net+encryption

One problem you'll run into is that most of the algorithms for encrypting strings can result with some non-printable characters, so outputting them may not look the way you think it would.
May 12 '10 #2
tlhintoq
3,525 Recognized Expert Specialist
Just do a google for "msdn cryptography" for the built in crypto namespace. Don't re-invent the wheel when there tools already for it
May 13 '10 #3
mfaisalwarraich
194 New Member
This is good tutorial with example and may help you:

http://www.devarticles.com/c/a/VB.Ne...al-Basic-.NET/
May 13 '10 #4
tlhintoq
3,525 Recognized Expert Specialist
There are so many good tutorials out there on this:
http://www.lmgtfy.com/?q=C%23+aes+cr...UTF-8&oe=UTF-8
May 15 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2733
by: JohnIsCrazy | last post by:
ok i'm interested in "scripting" if i'm wrong but i think is would be considered scripting i want to make a program that inside your browser will click on a certain place and i set that place and have a timer on when to press it how would i be able to make somthing like this? greatly appreciated and no its not for cheating on a game or somthing it's for testing an application i'm beta testing for my friend. thx all
3
16747
by: Abby | last post by:
I'm now using Cygwin as my compiler for C code. I use Dev-c++ as my editor. The reason why I chose Cygwin compiler instead of the compiler that came with Dev-C++ is that I believe it uses the same environment as in Linux, so that I don't have to write different sourcecode for both OS. Eventhough, I don't understand about Linux much, and I'm still a beginner in programming, I still have to make my program compatible with both OS (Windows...
2
1671
by: Ken Yu | last post by:
Hi, I want to make a program for receive E-mail by POP3, and forward to another E-mail Account, if the E-mail with Attachment , will delete the attachment before forward, where can i find more information how to download E-mail by POP3 and control mail attachment and send out ? Tks a Lot !
8
1043
by: Daniel Kaseman | last post by:
Can someone help me make a program?
52
4116
by: mavic | last post by:
hi to everybody,i need help for my project....how to make a program that accept any integer and convert it binary,octal and hexadecimal.pls help me...thanks
7
1358
by: hankssong | last post by:
Hi everyone, I'm writing a program that can retrieve some specified info from a web page, such as python topics I interested on a bbs. Now I had written the python script (run in the background), but I don't know how to make the program notify me explicitly, so I can be easily informed. I don't know whether python can warn me through beeping like C program(e.g.:printf("%c", '\07');) Thanks in advance!
0
952
by: Laszlo Nagy | last post by:
agus@cs.its.ac.id wrote: Can be done via the standard imaplib module. No need to use twisted. Save it as an eml file. Use the standard email.Parser module for extracting headers. I have no clue about it. Well, I can send you some examples that show how to download and parse emails from imap server. I have never used nntp before so.... Some examples are attached, and also a code fragment: IMAPDate.py - to convert between IMAP and...
0
1005
by: =?Utf-8?B?bGlnaHRkb2xs?= | last post by:
Dear EveryOne... i want to make some program like soaptool kit because of log. i used the soaptoolkit to see a soap messages, if i send lots data to IIS in my program by web service, i should write a log before sending the data or after, but i make this function in my program, the program will become slow to send lots data to IIS. if i don't write a log in my program, it will be find ^^.
82
3737
by: Bill David | last post by:
SUBJECT: How to make this program more efficient? In my program, a thread will check update from server periodically and generate a stl::map for other part of this program to read data from. Let's name the update method as doUpdate and stl::map read methods as getData and copyData. Since stl::map is not thread-safe, we should do synchronization by ourselves. A usable solution is to create a boost::mutex::scoped_lock object in all above...
3
9874
by: yottabyte | last post by:
Hey bytes, you may or may not remember but last time I was here a few months ago I got some help with making a hangman program which went well. Now I'm still doing okay in Java this year but I'm starting a new project for simple encryption and decryption. The way I set up the program to work is just to add 1 to each character to change a message... (example: "hello" becomes "ifmmp") or subtract 1 from each character to decrypt a message the...
0
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10228
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10002
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8883
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7415
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6676
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5312
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3970
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.