Write A Program That Takes A String Of Bits And Encrypts It Using DES Encryption?

Feb 19, 2010

Alright, So ive returned to using vb after several years now. Ive programed in VB6.0 years ago and I was quite proficient at it. However after returning to vb (now using Visual Studio 2010). Either Ive forgotten everything, or something has changed. For a university project. Im trying to write a program that takes a string of bits and encrypts it using DES Encryption.

[Code]...

View 3 Replies


ADVERTISEMENT

How To Do An Encryption Program That Encrypts With AES256

May 15, 2010

I'm trying to do an encryption program that encrypts with AES256. I have searched for source codes, but I could not find proper result. Most of programs use Rijndael as algorithm, but I don't want using this class. I searched MSDN for AES classes, and I found AESCryptoServiceProvider, but I don't know how to use it.

View 4 Replies

Write A Program That Takes Three Values Then Uses Them At Once?

Jan 22, 2011

How would i write a program that takes three values X Y and Symbol. the program is supposed to display a rectangle which is X

View 1 Replies

VS 2008 Append Bits For A Very Simple Encryption?

Sep 22, 2010

This seems like it would be so simple and fast, but I cannot figure out how to accomplish it in VB since there aren't many bit functions. I want to take a file and append 5 junk bits at the beginning and 3 junk bits at the end. In essence, just add 1 byte to the file, but in the process offset all the current bits so the file is no longer readable.

I just need a very simple encryption/decryption, but it needs to be very fast as well. I try XORing the bytes, but it gets slow with just a 1MB file. Some of the files are going to be close to 10MB.

View 3 Replies

Write A Program In VB 2008 Express That Takes An User Entry From A Textbox And Strips Out All The Spaces?

May 10, 2011

I need to write a program in VB 2008 express that takes an user entry from a textbox and strips out all the spaces, changes it to either all upper case or all lower case then checks to see if it is a palindrome. I must also include a loop structure and a decision structure. I have seen bits and pieces of code but I do not really know how to put them together. Basically I need it from the button click to the end. ?

View 3 Replies

Develop 32 Bits Applications If Have Win 7 64 Bits And Visual Studio 64 Bits?

Mar 14, 2011

I am a visual basic developer, I have windows 7 64 bits and Visual Studio 64 bits installed.CAN I DESIGN APPLICATIONS WITH THESE SETTINGS THAT CAN BE COMPATIBLE with 32 bits operating system(example in windows Xp 32 bits)?

View 2 Replies

Making A Simple Program That Encrypts A Text File And Then Decrypts It?

Sep 30, 2009

I am making a simple program that encrypts a text file and then decrypts it: why i get an error when i use this

Public Class Form1
Code:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
System.IO.File.Encrypt(TextBox1.Text)

[Code].....

View 12 Replies

Write A Sql Query That Takes Information From A Database?

Oct 31, 2009

How can I write a sql query that takes information from a database, and then put in the text in a label?

View 2 Replies

Is Write A Function Procedure That Takes An Array Of Strings

May 9, 2010

I'm a beginner and doing a review for my final...the question is-Write a Function procedure that takes an array of Strings, sorts it using Shell sort and returns the sorted array. I do not get shell sort at all.

View 3 Replies

Calculate The Lower 7 Bits And 7-13 Bits Of Two Hex Numbers?

Apr 8, 2011

I'm trying to figure out how to calculate the lower 7 bits and 7-13 bits of two hex numbers.

Here is some example c code, just need this in vb.net:

serialBytes[2] = 0x64 & 0x7F; // Second byte holds the lower 7 bits of target.
serialBytes[3] = (0x64 >> 7) & 0x7F; // Third data byte holds the bits 7-13 of target

The 0x7F is a constant so the only number that changes based off input is the 0x64.

View 2 Replies

Use SQLConfigDataSource To Add DSN To The 32 Bits ODBC On Windows 7 64 Bits?

Mar 28, 2012

how can I use SQLConfigDataSource to add DSN to the 32 bits ODBC on Windows 7 64 bits? I know it use C:WindowsSysWow64odbcad32.exe and on registry, HKLMSoftwareWow6432Node but the API do not allow me to configure it?how can I do ?

View 1 Replies

VS 2008 Applications In Windows 64 Bits And 32 Bits?

May 9, 2010

An application created with Visual Basic in Win7 64 bits will it still work fine in both WinXP 32 bits and Win7 32 bits ?

View 6 Replies

Write A Program That Separates A String Into 2 Substrings?

Sep 23, 2009

I am trying to write a program that separates a string into 2 substrings.Lets say I need the entire string to be 15 letters long.I need to break the string up so that the program reads it as two words.Lets say that the first word has to be 8 letters long and the second word has to be 6 letters long.So if I type it like this: Computer Screen

That should be 15 letters including the space between the two words.I need the program to read the string to make sure that the entire string is 15 letters long and if its 15 letter long continue, but if it is not 15 letters long stop and give me an error.If is 15 letter long next the program needs to read and make sure that the first word is 8 letters long and if it is print out the first word and continue but if not it needs to give me error.

Lastly if the first word is 8 letters long it needs to read and make sure that the second word is 6 letters long and if it is print out the second word and then continue, but if it is not give me error.The problem I'm having how to declare the first and second word and substrings, can someone please help me understand how substrings works and declare them after I have declared a string.

View 6 Replies

Change Permissions On A Registry Key And Other Bits From Within Program?

Apr 28, 2012

I am trying to write an app to automate several things that I have to do on a new computer once I have deployed an image, hoping someone could give me some pointers for them:-

1) changing computer description - wmi perhaps?

2) changing computer name - again wmi perhaps?

3) changing permissions on an existing registry key to full control

4) changing the "time to display list of operating systems" when booting from 30 secs to 3

5) turn off simple file sharing

6) and setting current user account so that password doesn't expire - at moment I do it from cmd prompt and do "wmic useraccount where "name='name'" set passwordexpires = false

7) change power plan settings so put the computer to sleep is "never" on both battery and mains

View 1 Replies

Write A Program That Counts The Number Of Spaces In A String?

Dec 17, 2011

Write a program that counts the number of spaces in a string provided by the user

-You need to use the InStr function and start it at different points within the string on each loop of the Do Until control structure.

output- needs to state how many spaces that are in the string that was inputed in the text box

View 4 Replies

Input / Output Methods And Validation (for Secure Coding) - Read/Write DB Encryption ?

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

Use BITS (Background Intelligent Transfer Service) In Program?

Aug 23, 2009

On the site below they tell me how I can use BITS (Background Intelligent Transfer System). The only problem is that the Microsoft.Msdn.Samples.BITS namespace doesn't exist in Visual Basic Express Edition. Does Anybody know how I can use bits using vb.net?

View 2 Replies

Program That Takes Data From A Survey In The Program?

Jul 7, 2010

I am working on a program that takes data from a survey in the program and needs to compile it into a PDF file. Optimally it would just be a snapshot of the filled out survey. I tried using the PrintForm component in the PowerPacks section, but I need a PDF not an EPS.

View 1 Replies

Program Takes All Cpu?

May 10, 2010

A couple days, I figured up a working program and it was def. faster than what we needed. Now, adding a couple more loops, the program barely uses any memory, but the cpu used spikes up to 90+ and just letting it sit doesn't help.I tried taking out the couple loops I put in, but it does not revert back to being fast. It's nothing big, but since dealing with 1000+ excel files a day, I'd rather not do that by hand.

how many infinite loops vb.net can support without dragging down the system? I know, infinite loops are poor design, but it works.

View 11 Replies

C# - Which Takes More Memory - String Value Or Long Value

Apr 16, 2012

I have a client application that connects to a WCF service, i get the file size from the server as a long value then i convert it at the client to a string so it appears like ex:52.21 MB the application gets too many files sizes every time user changes the directory pathso the question is :should i convert the values to a string format from WCF service app then return it to the client as a string format or should i just return the size as a long value and let the client to convert it to a string format in other way which value take more bytes in the memory:

[Code]...

View 3 Replies

Function That Takes A String As A Parameter?

Jan 1, 2012

I have a function that takes a String as a parameter And in it I have variables, so if I call it it's like

Dim Text As String = MyStringConverter("Hello Mr. " & Name & " " & Surname "!")

View 4 Replies

Takes A Value In A Combo Box And Appends It To A String?

Jul 23, 2009

I have the following expression that takes a value in a combo box and appends it to a string :

Dim Expression As String = "COMPANY = '" & cmbCompany.Text & "'"

View 2 Replies

Program That Takes A SSN Into A Number Field?

Oct 26, 2009

I am writing a program that takes a SSN into a number field.Issue is when a SSN is entered with a leading 0. Ex. 012-34-5678 The zero is cut off and turns it into an 8 byte field, which is not good for SSN obviously.What can I do to prevent this from happening?

View 10 Replies

Encrypt A String Via 128+-bit Encryption?

Apr 23, 2011

I am not sure if there is such thing in VB.NET via 128-bit Encryption or more. [code]...

View 12 Replies

Takes A String Parameter And Runs A Command?

Mar 15, 2010

What function in VB.NET simply takes a string parameter and runs a command? It would work just like the OK button in the Start -> Run dialog.[code]

View 3 Replies

Make An Encryption Program?

May 12, 2010

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

View 4 Replies

Can't Get The Program To Work - Randomly Takes Characters?

Nov 20, 2009

I am not recieving any errors, but the program is not doing what I had expected. I wish to make a program that randomly takes characters (well, not completely randomly. I used the table of letter frequency from wikipedia and included that data in my program by figuring out the max for the random numbers from the percentages in the wikipedia chart.) and adds them to a long list of characters ands saves the file every 5 minutes. I have calculated the timer interval so that the number of miliseconds shown is equal to 5 minutes. I am getting the textwindow, and it is showing (rather rapidly, as I need it to be) a long random list of characters (including spaces). The problems are (A) I am having difficulty saving the text as a file. You'll find the code that is supposed to do that at the bottom. The other problem I am having is once so many characters are added, the ones at the top start disappearing. I would scroll to the top, and each time I did so the letters at the top had changed (this is all during the same test), but I need all characters to be stored when the file saves. Granted, I haven't actually seen one of the saved files as I have not figured out how to make that work. One other thing, not sure if it's important, I haven't run a published version yet. I've only been running the debug builds. Does that affect how it handles actions with files?

Module RandomModule
Dim X, Y, contents As Primitive
Sub Main()[code].......

View 4 Replies

Terminate Code That Takes Long In Program?

Oct 25, 2010

How to terminate function/code (not entire page) when it takes some time, for example, more than 1 sec?[code]...

I found the command "Server.ScriptTimeou", but it stops the entire page instead of one command.

View 2 Replies

Working On A Program That Takes Input From A Textbox?

Aug 31, 2011

I've been working on a program that takes input from a textbox, removes the punctuation, puts the words into an array (using the split method), and compares the array against a reversed copy of itself to determine if it is a word palindrome or not. I understand the logic, but I'm getting kind of caught up as far as what code to us. This is what I have so far, but no matter what I enter into the text box, nothing happens. I'm completely lost as to what I'm doing wrong.

[Code]...

View 4 Replies

Writing A Program Which Takes One Item From Each Of Two Lists?

Jun 11, 2011

I'm writing a program which takes one item from each of two lists and combines the items in one of three ways selected by the user. The results of the process are provided in either a summary form or a detailed form, again selected by the user. As it's currently developing, this program will contain six subroutines covering each of the six combinations of user selections, which are stored in three Booleans. Selection of the appropriate subroutine is done through traditional "if then else" coding.If I understand OO and Visual Basic (Express 2008) correctly, I could make the subroutines into different variations of one method, which when invoked would automagically use the correct coding depending upon the settings of the Booleans / properties. Assuming this is correct, the problem is that I have no idea how to actually set up code like this.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved