VS 2008 Updating An Application From Internet - Hashing Method
Aug 5, 2009
I have created an updater for my application. When the application starts the user can launch an updater that will check for the latest version. Download it and copy the files to where the installation is.
Everything works fine.
However, I am looking for a more robust technique. And I have discovered it is better to hash the files on the web server with a hash algorithm and then when they have downloaded use the same hash algorithm to compare the hash values. If they are different either the files were corrupted when downloaded or some modified them without permission.
However, my problem is where do I store the hash values? I was thinking of hashing the files, and storing all the hash values for each file in a text file, and my updater will download that text file.
I am not sure if that is the best technique to use of not? Is this the normal and best way to do this?
View 5 Replies
ADVERTISEMENT
Aug 21, 2009
public static string CalculateSHA1(string text, Encoding enc)
{
byte[] buffer = enc.GetBytes(text);
SHA1CryptoServiceProvider cryptoTransformSHA1 = new SHA1CryptoServiceProvider();
[code]....
VStudio keeps yelling at me for just what I have so far most specifically the bracket at the end of Byte?:
Private Sub CalculateSHA1(ByVal text As String, ByVal enc As Encoding)
Dim buffer As Byte[] = enc.GetBytes(text);
End Sub
View 5 Replies
Jan 26, 2012
First of all, I hope my intention is not missconcept.I would like to add an update from the internet mechanism for my newly VB.NET application.The idea is simple. That is, I ZIP all of the binary that need to be changed, upload it in my own hosting site, and download it using my Update Application, extract and overwrite the existing binary.
It works, quite well. But the problem is, the size of the binary itself is quite big (around 36MB). I am thinking of patches. That is, can we upload only the patch file, it surely make the download small isn't?
View 2 Replies
Nov 30, 2009
Im trying to make a little login app that connects to my mysql. But I cant figure out how would i salt the password then hash it?
View 5 Replies
May 6, 2009
I know I can MD5 hash a file, but how do I go about using the SHA256 algorithm?
View 6 Replies
Mar 28, 2012
I am indifferent if you are a VB.NET or C# or other .NET developer. I have a FACTORY class like the following:
[Code]...
View 2 Replies
Sep 14, 2009
I have a windows application developed in VB.net 2005. The application is installed in several machines.Is there anyway when I do any modifications and publish the code it updates in all the machines.
PS: All the machines are connected to internet.
View 2 Replies
Jun 2, 2011
I got a window form, and I want to send data to another computer or a server over internet after the submit button is clicked. Yes, this is a very "general" question (I cant not ask it in more detail), because I don't have any information how to do that, I google it, and I heard WCF, but I am not sure how it actually can do this job (seem like WCF is related, but still researching).
View 4 Replies
Jun 12, 2010
i was playing around with the visual basic 2008's project settings. I have 2 goals in mind
[Code]....
View 3 Replies
Apr 26, 2011
way to update my application executable, and a few other application files for a simple application updater that I am using in my application. The code updates the files (including the executable, manifest, and a few other files), but on Windows Vista and Windows 7 machines you must run the application as Administrator in order for it to update the files in the application folder.
View 2 Replies
Jan 31, 2011
Currently my application shows "Publisher: Unknown" when being run from the internet or if requesting UAC permission.how I can change this. I've spent a few hours trying and don't want to have to pay Verisign or someone. I know you have to set a strong name up in the Signing section but I can't get this to work. Also, when I upload the application I currently just upload the .exe from the bin/release folder as I like it to be a portable application. Am hoping I can keep it this way for a publisher name to appear.
View 2 Replies
Sep 7, 2011
I have a shopping cart ListView control backed by a custom object that has methods for selecting and deleting. In the ListView, one of the columns is an ImageButton that is essentially a delete icon, with the CommandName parameter set to CommandName="Delete".
My issue is related to updating the shopping cart ListView on delete; as the delete method is stored in the custom business entity object, I am having trouble in terms of updating the calculations made inside the cart (we have deleted an item, so I need to recalc shipping, taxes, etc).
[Code]...
View 1 Replies
Nov 12, 2009
Ok I'm trying write a simple 2d game. I have a base class to render the game sprites. It uses the forms graphics object to update the scene. The problem is it will draw only one picture then it seems like the onpaint event isn't raised again to update it. How do I use the raiseevent method to make a call to the onpaint method. Here is the code so you can understand a litte what I am doing. TYVM
[Code]...
View 1 Replies
Dec 26, 2011
EDIT:I edited the question to show the code I have come up with. It does not work... No "test" caption becomes visible on the main form.
Private _dispatcher As Dispatcher
Delegate Sub SetLabelText(caption As String)
Private _setLabelText As SetLabelText
[code].....
View 1 Replies
Feb 11, 2012
I'm encrypting a file with AES using CryptoStream. I'm also creating a CRC32 hash of the original file data. Later I need to decrypt the file and create a CRC32 hash of the decrypted data, in order to check if the decrypted file is 100% the same as the original file.
This is a part of the encryption routine. I'm reading a file in chunks and writing them encrypted to a new file. At the same time I'm creating a CRC32 hash of the chunks of data, which will give me the CRC32 hash of the entire file in the end. This works fine.
vb.net
'// Create the CryptoStream
Dim Crypto_Stream As New CryptoStream(FS, crypto_transform, CryptoStreamMode.Write)
[code]....
View 6 Replies
Jan 2, 2010
I have discovered that the .Net Hashing functions, MD5, SHA1, and SHA512 (all of them probably) do not allow us to create hashes of files greatedr than 2GB in size. If I use a function like the following:
Friend
Function
HashMD5File(ByVal
[code].....
View 4 Replies
Jul 23, 2011
How can I Implement Drupal 7's Hashing Algorithm into my software so that I can make a database query that allows the user to login? I know that they use SHA-256 bit and they use Base64 encoding and a salt generating algorithm...
View 1 Replies
Nov 8, 2011
I'm trying to teach myself arrays as I have not extensively worked them. So I thought of a basic program to hash the contents of an array and list the output of the array word next to the hash value of it.
[Code]...
View 9 Replies
Mar 17, 2012
i want to which way is better when concentration is on processing speed. i want to call a method that compute some data that method is on another form in my windows form application then what you prefer is better way 1) to call that method in another form and use returned value or create similar method in form where it is required.i want to make it's processing fast.
View 3 Replies
Apr 17, 2009
I have a problem I have a project that needs to have a communication of asp .net to vb .net my project is i want to access or control(like a remote control) the vb .net application(server) using asp .net(client side) asp .net is like a remote control and the vb .net is the application that needs to control i need to use internet to do that.
View 1 Replies
Sep 16, 2011
I'm trying to make online chat..I saw 2 P2P tutorials:url...both are great tutorials, but they work in LAN only with addresses and ports given.if anybody knows which port and address could I use with this ideas and go to internet.
View 2 Replies
Jun 3, 2011
I have an application that will take in specific details from the customer and generate a URL address with query string items.I need to open up an internet window that will navigate to that URL?
View 1 Replies
Jun 23, 2011
I have an application that will take in specific details from the customer and generate a URL address with query string items.
View 5 Replies
Apr 18, 2010
i have a Developer. have devloped application in vb.net. Now my customer says he wants to run that application in internet explorer so that can meet lots of customers for him. how can i run vb.net application in internet explorer?
View 1 Replies
Nov 9, 2011
I've been trying to create a FCS16 (Frame-Check-Sequence) hashing algorithm, but so far the only explanation I've found is this [URL]and I'm having trouble writing the code.
View 5 Replies
May 1, 2009
is there a way I can proxify my application's connection to the internet??
I want it to be able to select a random proxy from a list of proxy IP address in a text file.
View 1 Replies
Jan 10, 2012
I need my application to check for internet connectivity on my user's computer. If there is, an image is displayed and if there isn't, a different image is displayed. Here's the code I used to get this to work:
Private Sub Window_Loaded(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles MyBase.Loaded
If NetworkInformation.NetworkInterface.GetIsNetworkAvailable Then
Dim bi1 As New BitmapImage
[code]....
I decided to test this on my own computer by changing my default gateway (thereby making it seem as if I lost connection). But I realized that the code still showed that I was connected. So I'm thinking that it's only checking for connectivity of the interface - which in this case, is my connection to the router (which is true, I was connected to the router).How do I check that the user's PC is actually connected to the internet? I read the article Check for Internet connectivity but it's in C# and I don't understand that.
View 1 Replies
Jul 17, 2009
Is there a quick and easy way to get internet time/date to use in a net application?
I need it for creating a 15 day trial application, if i use local time/day user can simply change date before install and revert after. Using internet time i can simply add 15 days to it. VB.NET to C#
[URL]
View 2 Replies
Aug 16, 2009
i'm developing a vb application and am intending to offer the functionality of that application on the internet as a service , how do i do that?
View 5 Replies
Jun 11, 2010
how to properly publish my application to the Internet, so that i can upload the new version, and upon opening, the application will replace the existing one with the new version?
My.Settings("Notepad") = TextBox2.Text
My.Settings("Notepad") = TextBox2.Text
When i run the application, that pops up in yellow with an error message, how do i fix it. I'm looking at creating an IRC client that's embedded in my application. If you are able to create it even, you will be given credits, and are able to do whatever you like with it (I'll be determining its size and positioning inside my App of course) You need to be able to CHOOSE your Channel.. the client will be connecting to the Swiftkit IRC server.
View 2 Replies