List Encryption Types In Program?
Oct 31, 2011Could any one list the encryption types in Visual Basic.
View 1 RepliesCould any one list the encryption types in Visual Basic.
View 1 RepliesMy 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 RepliesI'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 RepliesPublic Function Crypt(ByVal Str As String, ByVal Password As String) As String
Dim SK As Long, K As Long
Rnd(-1)
Randomize(Len(Password))
[code]....
What would be the best way of storing data securely away from users. What I have is a stack of files that get downloaded by the program, at the moment they COME encrypted, and stored in a temp location. Now where would be the be place to store them, and how would I store them? The program reads normal unencrypted files but in order for me to open them at the moment I nee to decrypt them in the temp folder and open them from there.This is bad because anyone could find the temp folder and simply copy out all the unencrypted files.Opening the files and then decrypting the bytearray is out of the question because the program only takes a filename as a option.
View 2 RepliesI am currently working on a simple data encryption program in VB 2008 express. Basically, I want the user to be able to select any file type and the program will read the data and store it in a text box. The user would then input a key, push the encrypt button and the program would XOR each byte of data with each character from the key and store the data in the third text box. I have written a program that has similar functionality only, it will not read from files, it simply reads data from a text box, so I have a encryption algorithm that works.Here is my
[Code]...
I was board making web browsers and OS so, I tried making an Encryption/Decryption program. I surfed the net and found a source code. But, after doing everything, I debug it, click the encrypt btn and nothing happens. I though the encrypting is a slow process. The thing is the process should be immediate cause I downloaded this web browser called 'Areo Pack'. It comes with a few other program and one of them in an Encryption/Decryption program. I tried it and it was done in a few seconds. I tried opening the encrypted file with notepad and I see a text file with Chinese, Japaneses, Korean, etc.
Imports System.Security.Cryptography
Imports System.Text
Public Class Form1
Private Shared DES As New TripleDESCryptoServiceProvider
Private Shared MD5 As New MD5CryptoServiceProvider
[Code] .....
This is for a simple encryption / decryption program. However when I run this the program does nothing and doesnt respond. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim decryptedtext As String
Dim encryptedtext As String
Dim k As Int16
[code]...
I need some help with writing a program that will encrypt text using AES encryption. I'm not quite sure how to go about doing this.
View 1 RepliesWhat I've decided to start working on is pretty much a personal project but something I may use in my UNI course in due time. I'm creating a security program with a set of access codes (yes I am a bit of a star trek fan) - 4 in total to be exact. I want to be able to use an Encrypted key file in form of a simple notepad created text file to update the codes at any due time. All I'm looking to do is write the access codes to the text file (say for a friend to use the program), Encrypt the file through the program and be able to also decrypt to obtain the new access codes on demand also via the same program. Once decrypted the codes can be read and verified if the user has entered each one correctly. I could hard code the access codes into the program but would rather do it the way I've thought of.
Back in the days of the old VB6 there was a simple method but for some reason that doesnt work any more. What I guess I'm looking to do is have 4 text fields where 4 digit access codes are typed into, have the program take them and encrypt each one is then written to the text file. Hoping that will make it a bit clearer what I'm trying to achieve as I think I made it sound like I want to encrypt the text file after the info has been written to it, which is of course one option so wouldn't mind know how to do that too!
I am trying and failing to make a text encryption and decryption program. How can I encrypt and decrypt text or text files?
View 6 RepliesI'm writing a program and currently have 4 lists called Palette1, Palette2, Palette3, Palette4.Each contain 15 list items of Color type.I was hoping to create an array of lists but have been unsuccessfull in doing so.[code]
View 6 RepliesAlright, 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]...
Is it possible to add Excel Custom Chart Type names to a list box at run time? That is, Microsoft.Office.Interop.Excel.Chart.XLChartType values to a list box?
View 1 RepliesI need a list of all the SQL types and their .NET (vb would be preferred, but C# also works for me)equivalent.
View 3 RepliesI recently made a simple pseudo-encryption program that changes each character into another. It is capable of encrypting and decrypting a string. This can also be done to any text file as well. The characters range from ASCII 32-254 (This on it's own may be an issue because of #127 being DEL).
Because I believed my own coding may be at fault, I attempted this with Triple Des with identical results.For Triple Des, the requirements for en/decryption was:
Encrypt: String to Byte
Decrypt: Byte to String
And to change them either direction, I used UTF8. I also attempted ASCII and UTF32, but I don't know what I should do. I am considering dropping this but I want to learn problems like this because I am currently in college and haven't started my core classes for programming yet and want the head start.
The point where I have come into a problem is attempting to do this to another file type like an image. I looked at the results from encrypting then decrypting and the results were similar, but it seems file encoding must be the culprit.
Assuming a base type of "Message"...
[Code]...
I would like to have one collection of Message objects which can be either PhoneMessages or MailMessages, so that I can iterate through the list and deal with each message based on what type it happens to be.
Attempting just to use .Add() fails, saying that I can't add an item of type PhoneMessage to a List(Of Message). Is there some elegant way to accomplish what I'm trying to do? I had thought I could accomplish this with generics, but I think there's a gap in my understanding. If it can be accomplished in .NET 2.0, that would be ideal.
I really need to know the list the types of components that are provided by the VB .Net?
View 3 RepliesIs there any way to select items in a list that aren't contained in another? For example:list1 = From t In list1 Where Not list2.Contains(t.column1)That gives me the error:Value of type 'Integer' cannot be converted to '<anonymous type>'which makes sense, since list2.Contains is expecting the same type as list2. However, the list types are different. I want only to select based on column comparisons.
View 3 RepliesAny best approach to what I'm trying to achieve (linq to sql, returning list of data to show in a grid/list etc etc)... Its complaining about anonymous type conversion, and from what I'm reading, thats not elegant way of doing it.
Public Function GetHistory(ByVal historyId As Integer) As List(Of ?????????)
Using dc As New myDataContext(Application.GetConnection)
Return (From t In dc.ActionTypes, a In t.MyTable Where a.HistoryID = historyId Select a.ActionOn, a.ActionBy, t.Description, a.ImpactedItem, a.ActionDescription).ToList
End Using
End Function
Given a list of objects, I'd like to print a string version of them just in case the object.ToString() result is a relevant string.By that I mean I don't want to get things like:
obj.ToString() -> System.Collections.Generic.List`1[MyLib.Dude]
obj.ToString() -> System.Collections.Generic.Dictionary`2[System.Int32,System.DateTime]
obj.ToString() -> System.Byte[]
But I want to get things like:
obj.ToString() -> Hi
obj.ToString() -> 129847.123
obj.ToString() -> Id = 123
What should be the best way to implement this in a method:
Public Sub PrintInterestingStuffOnly(ByVal coolList as Ilist(Of Object))
For Each obj in coolList
'insert solution here
[code].....
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]...
Associate .hwm File Types With Program?
View 3 RepliesI'm writing a program that saves 'map' files to the HD so that I can open them later and display the same data. My maps originally saved only one data type, a set of my own custom objects with the properties: id, layer, x, and y. [code]...
View 2 RepliesI have a class with a Property called 'Value' which is of type Object.Value can be of any type, a structure, a class, an array, IList etc.My problem is with the setter and determining whether the value has changed or not.This is simple enough for value types, but reference types and lists present a problem.For a class, would you assume that the Equals method has been implemented correctly, or just assume that the value has changed every time the setter is called?If I did assume it's changed, then perhaps I should assume it for value types as well, so that the behaviour is consistent.
View 2 RepliesI want my program to: send.sendkeys(textbox1.text) as many times as someone types in so for example if someone types in 20 it will send it like this:
[code]...
I need to compare two dictionary values if the types stored are equal, this is what i have
if gettype(Args(key)) = gettype(argtypes(key)) then
'' do something
end if
[Code]....
I have a program that will compare an array of grocery list items glist and an array of coupon item clist.When I compare the two and if there is a match somewhere in the array I want to have a picturebox visible.When there is no match, I want the picture box not to be visible. [code] The code seems to work great until I come to the else statement.When the code finds a match it displays the picture box and the msgbox without error, but as soon as the message box is cleared, even though i've input it as an ELSE statement, the picturebox goes false again.Does anyone have any idea of how I can "hold" the picturebox to stay visible while the match between the arrays exists?
View 18 RepliesYes how would i make a program that auto clicks "new thread" and types in what are u put in textbox2 and then clicks sumbmit..Why I want to no:+ iM just trying to make a a program that makes it easyer to post.About the program Im trying to make: +im gonna have a webbroswer in my program and then i want then below there wil be a the thread auto click ...so day if i go to www.urlhere.com and go to there forum page i would jsut type everything in my auto clicker and i press button1 it will do everything for me like post the thread
View 2 RepliesPrivate Sub cmdReport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdReport.Click[code]...
View 2 Replies