Secure Password When Downloading Files From FTP

Feb 15, 2010

I will be downloading updates for my database and client from a separate executable that will only be used for updating.In order to prevent someone from just decompiling my app through reflector and obtaining the password to the FTP server, what would be the best way to store the FTP password?
I was thinking I could create a table in my SQL database and store it there since a SQL database is way more secure than my app.

View 6 Replies


ADVERTISEMENT

Create Dynamic Links To Files For Secure Downloading

Sep 1, 2010

Any Way to be able to access a file externally that is located on an internal network by a simple link. I need a way to generate links to files to dynamically in code. So say for instance I'm writing an outlook add in that strips the attachments from messages if they meet a certain size criteria. then upload the file to a server and post a temporary link to the file that can be accessed any where. I prefer to store the file on an ftp server but for security issues I can't do it that route. is there a way to do this in windows server.

View 1 Replies

VS 2008 - Secure Password Protection For Info?

May 11, 2009

I am making an program that stores most of my text files in it. So I need a secure password protection to protect my information's. I was told that MD5 will get the job done, so I used an MD5 protection to see if it'll be good. I gave the test program to a guy I know and he manage to get my password within a minute. (I am still a bit new to VB so which encryption to use...)

View 21 Replies

VS 2010 Keeping A Password Textbox Secure?

Jul 29, 2010

I've never really used the SecureString class before but I've got a requirement in an app to have a user enter a password that will be used later in the application, and I figure SecureString is the most secure way to do this.

I have created a little dialog form where the user will enter their username and password and have set the UseSystemPasswordChar property of the password textbox to True. As I need to keep the password in memory for use later though, I have created a property in my main form that is of type SecureString and when the user enters their password into the dialog window I copy the string from the password box to the SecureString property like so:

vb.net
For i As Integer = 0 To LoginFrm.PasswordBox.TextLength - 1
Me.ConnectionPassword.AppendChar(LoginFrm.PasswordBox.Text(i))
Next

I figured out how to get the original string back when I need to (with only a slight hint from the documentation I might add ), which I do like this:

Dim OriginalString As String = Marshal.PtrToStringBSTR(Marshal.SecureStringToBSTR(Me.ConnectionPassword))

but the problem I have is that I want the user to have the option to edit the password they already entered if they want to. This is a problem because I want to avoid putting the real password back into the password box for security reasons, but then if I just put some random characters in there (just to show that their password has been remembered by the app) and then the user clicks OK on the login diaog form then it will update my ConnectionPassword property and set it to the random characters.
One option would be to set the passwordbox text to something specific each time and then test to see if that is what the text is set to when they click Ok (and if it is then obviously dont update the ConnectionPassword property) but this seems pretty rubbish because its possible (however unlikely) that the user could actually select that word as a password.

Any better suggestions? Perhaps its not worth doing anything at all and just use a normal string as the SecureString is going to have to get converted back to a normal string at some point to be used.

View 8 Replies

User Name & Password Is Not Working On Downloading?

Dec 1, 2010

I am using

My.Computer.Network.DownloadFile _
(file sourse, file location, "username", "password")

View 7 Replies

Ftp Collection Of Files Through Secure Ftp

Nov 26, 2010

I need to ftp collection of files through secure ftp

1.i need to open connection then transfer all files and close connection, the connection should open only once

2.The FTP should be secure

View 1 Replies

Need Expert Opinion Secure Upload And Download Files

May 3, 2011

I am making a windows form and through this form i want my users to upload and download files stored in a Directory on a machine running windows 2003.Could anyone please tell me the best and secure way to share files on a directory for users to Upload and download and "without letting the users to know the actual path"..User Clicks on a Button and it will automatically download the files from server.User Clicks on another Button and it will automatically upload the files to server.The file name and paths will be taken from labels which are hidden on my form so the user doesn't need to specify anything..I have 3 Options and looking forward to some expert opinion on this. My main concern is to never reveal the location to users and smooth upload and downloads.Is there any better option..i mean from my windows form perspective only and not talking about firewall settings, folder permissions etc...or any 3rd party software to protect data.[code]

View 2 Replies

Asp.net - Downloading Exe Files From Database?

May 15, 2012

I have some exe files that I've uploaded into my database as I don't want them to be publicly accessible. I tried using a link button and a generic handler to serve the file using the following code:

Context.Response.Clear()
Context.Response.ContentType = "application/exe"
Context.Response.AppendHeader("Content-Disposition", "filename=program.exe")
Context.Response.BinaryWrite(binaryfile)

The problem: Google Chrome does not treat the download as any other exe, instead after downloading it reports "program.exe is not commonly downloaded and could be dangerous." with a "discard" button and the option to "keep" the download is hidden under a context menu.

serve exe files stored in the database?

View 2 Replies

Downloading And Placing Files?

Jun 6, 2011

Im currently working on a program that will download some files and place them inside a folder. The tricky part is that the folder they have to be puttet into is a .jar file. The jar file is always the same place, and that is in %appdata% the full location would be "C:UsersBrugerAppDataRoaming.minecraftinminecraft.jar". With "minecraft.jar" beeing the destination for the files

Ps. Im trying to create a mod installer, since some people are having a little trouble installing mods for minecraft. Minecraft can be found at [URL]

View 2 Replies

Downloading Files From Asp.net Page?

Mar 9, 2009

I have been trying to download the file from a virtual directory ( which is pointing to some other location) within the web-folder. I have implemented 2/3 ways on doing that, but none of the ways download the file. The asp .net page is not even showing the error, its showing a blank screen. One of the pice of code I implemented is:

<code>
filename = LinkButton2.Text
filepath2 = Server.MapPath("/folders/") & uname & "/" & filename
HttpContext.Current.Response.ContentType = "application/octet-stream"

[code].....

View 2 Replies

Downloading Files Online ?

Jun 23, 2010

All im trying to do is make a program that downloads all the files i want offline and but them in a folder, but when i go to the folder and look at the downloads they are all empty,

Here is my code.

Code:

View 1 Replies

Downloading Files With Same Suffix

Nov 16, 2011

I have about 170 files on the server with the sameending Eix and EPK in the "pack".It would have to withdraw all my files to a predetermined folder "pack".

View 4 Replies

Downloading Many Files From A Web Server

Jul 30, 2009

I am using the web client to download a file. Which works ok. However, now I have to download many and the number of files to download will change everyday. I am not sure how I can get the web client to know which files have been downloaded or not? I was thinking of using a for loop to download each file. But I will never know how many there are to download? The web client could download the same file twice?

[Code]...

View 5 Replies

Downloading Multiple Files Specified In TXT Doc?

Aug 18, 2010

I've come up with a way of downloading multiple files specified in a txt doc held on a web server. The problem is it only downloads files not folders, im using the following from the codebank to download the files currently:

Try
mCurrentFile = GetFileName(URL)
Dim WC As New WebClient
WC.DownloadFile(URL, Location)
RaiseEvent FileDownloadComplete()
Return True
Catch ex As Exception
RaiseEvent FileDownloadFailed(ex)
[Code] .....

Can I modify this to allow downloading of folders too or will I have to use a completely different method?

View 2 Replies

Downloading Multiple Files?

Jan 10, 2011

I'm trying to code a program that can download multiple files at once (on different threads of course). I have created a custom listview component that will allow me to add a progressbar directly to it. What my real question is, how can i take a url given by the user from an input box and create a new webclient to handle the downloadasynchronously

View 2 Replies

Downloading Zip Files From Internet With VB?

Dec 28, 2011

[URL]..it just comes up with an error. am i doing it right? and is there any way i can just download it to the same folder that my program is in no matter what computer its on?

View 13 Replies

VS 2008 Downloading Files

Apr 28, 2011

im trying to write an updater for my program and im checking the version by downloading a .txt file. however its coming out blank. this is the first time ive done something like this so i probably noobed something bad.[code...]

View 12 Replies

Application For Multi-downloading Certain Files?

Apr 9, 2009

Basically I want to create a little program with 5 or so text fields where I enter the specific names of movies. Upon pressing a "go" button it then does a google search(with certain criteria) for all textfield entries on the website [URL} and then download the files, if possible without opening a browser.

Search criteria:
-only video formats(.avi .mov etc)
-download url contains the "_de" tag (to insure german trailers)

That way it should hopefully find the right trailer and download it. If possible have it use progress bars.

How much work do you think this is? Or is it even possible? From a logical standpoint I don't think it's too much work... I am using Microsoft Visual Studio 2008 Express Edition. My project currently is just full of test code but I will post it anyway:

Code:
Public Class Mainwindow
Private Sub Mainwindow_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[Code].....

View 3 Replies

Downloading All Files In A Directory ( HTTP And FTP )?

Mar 4, 2010

I would like to know how to do the following :

View 2 Replies

Downloading Files Form A Webpage?

Oct 31, 2010

Here is this code of the webpage:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

[code]....

View 4 Replies

Downloading Files From Listbox Links?

Jul 26, 2010

I have a listbox full of links, and I want to download them. The listbox items' text contains a link to a webpage in each one. Now I want to download each page's code to a file site1.html for example. Also for each file I need to add a number site1, site2, site3 ... How do I do that ?

View 1 Replies

Downloading Files With BackgroundWorker And Progressbar?

Nov 11, 2011

I just have 1 listbox which got link in there. How can I download each file using background_worker + progressbar(current file download)?

View 5 Replies

Free Up UI While Downloading A List Of Files

Dec 22, 2010

I want to download a list of files and report whether or not each file exists or contains certain qualifiers. The files are text/web documents, with maximum sizes of about 200 KB.

I am using a For loop to iterate through the links, which are placed in an array. The problem is that while my loop is going on, all of my forms become frozen and any status updates I want to show in my forms essentially do not show up because the UI is stuck.

Is there a better way to free up the UI than using DoEvents()? I recall from a previous post that the way my function is being called, it's being called from the UI thread,. Therefore I should just start a new thread so my UI thread doesn't get hung up downloading all the files? Or should I use a timer and download each file at a specific interval so that there's some downtime in between files that allows for me to change the status to tell the user that my program isn't stuck?

Edit and side question: I just realized something really...bad. Basically in my program I play around with DOM for a WebBrowser in my main form. I'm working with a lot of the elements in the document, but they don't always exist because each page takes time to load based on a user's internet connection speed. I WOULD HAVE used a While loop to check if certain elements exist or not, but in the past when I used VB6 I noticed that this causes massive program hangs...so I used a timer instead. But those hangs were the exact same type of hang I seem to be having with this downloading files business.

Now, I just moved from VB6 to .NETa few days ago. But I just read that the reason I used timers in VB6 was because VB6 didn't support multi-threading. So...for all of those instances where I should be using a While loop instead of a Timer, should I just place that While loop code in a new thread so the UI doesn't freeze up?

If so, I am greatly relieved and I can make my code 10 times less ugly. But I will also rip parts of my hair out because it took me like a 100 hours of debugging to get my really crappy timer code working.

This is my code so far:

Code:
Private Function analyzeURLs() As Integer
Dim k As Integer
'did we make it through without any errors?

[Code].....

View 2 Replies

VS 2010 - Downloading Files Selectively

Aug 19, 2010

I was wondering if there was anyway to 'scan' page sources of websites and download only certain files based on their extensions, as you would by going to view -> page source in a web browser? Then, saving, perhaps, a .pdf, or a .swf file? I really don't know where to start.

View 6 Replies

VS 2010 Downloading Multiple Files At Once?

Oct 31, 2010

I'd like to convert a VB6 application to .Net. It downloads multiple files at once and the progress is shown in a Listview. I'm using the Winsock control in a Usercontrol. Every time I start a new download a new instance of the Usercontrol is loaded. This way I can easily download 25 files at once with very low CPU usage.

I looked into the WebClient Class to download the files, but I noticed it only downloads two files at a time. Other downloads won't start unless one of the first two downloads are finished, but maybe I'm doing something wrong.

1) What's the best way to download dozens of files at once? It must be possible to resume the downloads.
2) How do I keep the downloads apart (index number?), so the Listview can be updated accordingly? I don't need help with the Listview itself.

3) Should I use the Backgroundworker or not?

View 11 Replies

VS 2010 Downloading Multiple Files?

Mar 11, 2011

I'm using a WebClient to download a bunch of small files from a website, but doing them one at a time takes a long time, approximately 20-30 minutes for all of them. Is there a way to download multiple files simultaneously, to shorten the time it takes?

View 1 Replies

VS 2010 Downloading Swf Files From Website.

Mar 11, 2012

if I had the full path of a .swf file on a website: eg [URL]

I'd have the webbrowser1 navigate to the address as shown before.

Then i'd like to webbrowser to download the file, in compatibility with a savefiledialog.

View 2 Replies

VS 2010 Downloading Text Files

Oct 14, 2010

I have used many different "snipets" of code to download .txt from the interent however, each time, instead of showing [code]All failed to put it exactly how it is set out in the beginning. So I was wondering can anyone fix this? I do have a button to press so it downloads it and my declarations are:

-Imports System.IO
-Imports System.Net

View 10 Replies

Web Browser Downloading Files Setting?

Jun 13, 2011

I'd like to know if there's a way to save all files that are being downloaded trough the Web Browser I've made in my Visual Studio 2010 to a specific location ,by letting user to chose option save file without knowing where it saves.Or maybe to don't show the "save file" thing at all.

View 2 Replies

Asp.net - Uploading And Downloading Files From A List Type?

Mar 2, 2011

I am using an ASP.NET FileUpload to upload files to the server.How to upload it to the rootfolder of my project. I want to add the files to a collection or list of files to be shown on the webpage in the form of gridview.Each file should have a link to itself in the list So that it could be downloaded by the click-if desired.The gridview will also have a delete column so that I can delete any of the corresponding file-as desired.

View 1 Replies







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