473,387 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Encrypt String or different approach

Good afternoon,

I am building an application that uses ASP .NET, and Blackmoon FTP
Server, My plan currently is to automate some user processes one of
those processes is to allow them to download files in their FTP Root
directories via HTTP for our clients who are behind firewalls which
prevent them from using the FTP protocol.

So to this end i have created a page which lists all thier files out,
then provides a link that would spawn a new window which would initiate
the transfer. Couple problems exist for me being that i have only been
using ASP .NET for 2 weeks now my question is this.

1) Is there possibly a better way to initiate the file transfer without
spawning a new window

2) if spawning a new window is the route i go is there a way to encrypt
the string i send to the new page so that people can hack the file
transfer page to download any files they want.

Any suggestions on improving my approach to this problem are also welcome.
Gary Townsend
Systems and Web Developer
Spatial Mapping Ltd.
http://www.spatialmapping.com
250 564 1928
Nov 18 '05 #1
4 1221
By the way point to should read "so that people CAN NOT hack "
Gary Townsend (Spatial Mapping Ltd.) wrote:
Good afternoon,

I am building an application that uses ASP .NET, and Blackmoon FTP
Server, My plan currently is to automate some user processes one of
those processes is to allow them to download files in their FTP Root
directories via HTTP for our clients who are behind firewalls which
prevent them from using the FTP protocol.

So to this end i have created a page which lists all thier files out,
then provides a link that would spawn a new window which would initiate
the transfer. Couple problems exist for me being that i have only been
using ASP .NET for 2 weeks now my question is this.

1) Is there possibly a better way to initiate the file transfer without
spawning a new window

2) if spawning a new window is the route i go is there a way to encrypt
the string i send to the new page so that people can hack the file
transfer page to download any files they want.

Any suggestions on improving my approach to this problem are also welcome.
Gary Townsend
Systems and Web Developer
Spatial Mapping Ltd.
http://www.spatialmapping.com
250 564 1928

Nov 18 '05 #2
Don't use a GET (using a querystring), but rather a POST to the target page.
The user then won't see any info in the address bar

jeff

"Gary Townsend (Spatial Mapping Ltd.)" <ga***@spatialmapping.com> wrote in
message news:crNjd.127215$df2.85635@edtnps89...
Good afternoon,

I am building an application that uses ASP .NET, and Blackmoon FTP
Server, My plan currently is to automate some user processes one of
those processes is to allow them to download files in their FTP Root
directories via HTTP for our clients who are behind firewalls which
prevent them from using the FTP protocol.

So to this end i have created a page which lists all thier files out,
then provides a link that would spawn a new window which would initiate
the transfer. Couple problems exist for me being that i have only been
using ASP .NET for 2 weeks now my question is this.

1) Is there possibly a better way to initiate the file transfer without
spawning a new window

2) if spawning a new window is the route i go is there a way to encrypt
the string i send to the new page so that people can hack the file
transfer page to download any files they want.

Any suggestions on improving my approach to this problem are also welcome.
Gary Townsend
Systems and Web Developer
Spatial Mapping Ltd.
http://www.spatialmapping.com
250 564 1928

Nov 18 '05 #3
> Don't use a GET (using a querystring), but rather a POST to the target
page.
The user then won't see any info in the address bar
But it'd still be open by viewing the contents of the HTTP request.

To answer the original questions:

1) You could always use a URL Rewriter or something that would inspect the
request, and transfer the location to the actual URL.

2) Encrypting the string is a fairly sound approach in my opinion, but you
need to ensure the key is kept securely. Have a look at the DPAPI articles
on MSDN, they've got some good suggestions for that kind of thing.

"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message
news:Oq**************@TK2MSFTNGP14.phx.gbl... Don't use a GET (using a querystring), but rather a POST to the target
page.
The user then won't see any info in the address bar

jeff

"Gary Townsend (Spatial Mapping Ltd.)" <ga***@spatialmapping.com> wrote in
message news:crNjd.127215$df2.85635@edtnps89...
Good afternoon,

I am building an application that uses ASP .NET, and Blackmoon FTP
Server, My plan currently is to automate some user processes one of
those processes is to allow them to download files in their FTP Root
directories via HTTP for our clients who are behind firewalls which
prevent them from using the FTP protocol.

So to this end i have created a page which lists all thier files out,
then provides a link that would spawn a new window which would initiate
the transfer. Couple problems exist for me being that i have only been
using ASP .NET for 2 weeks now my question is this.

1) Is there possibly a better way to initiate the file transfer without
spawning a new window

2) if spawning a new window is the route i go is there a way to encrypt
the string i send to the new page so that people can hack the file
transfer page to download any files they want.

Any suggestions on improving my approach to this problem are also
welcome.
Gary Townsend
Systems and Web Developer
Spatial Mapping Ltd.
http://www.spatialmapping.com
250 564 1928


Nov 18 '05 #4
Excuse me? In ASP? I don't think so...

What do you mean by HTTP request? View Source on the page? You can't view
ASP code. And SSL would encrypt the packets themselves, if that's what you
mean.

Jef
"Paul Ingles" <pa*********@newsgroup.nospam> wrote in message
news:OO**************@tk2msftngp13.phx.gbl...
Don't use a GET (using a querystring), but rather a POST to the target
page.
The user then won't see any info in the address bar


But it'd still be open by viewing the contents of the HTTP request.

To answer the original questions:

1) You could always use a URL Rewriter or something that would inspect the
request, and transfer the location to the actual URL.

2) Encrypting the string is a fairly sound approach in my opinion, but you
need to ensure the key is kept securely. Have a look at the DPAPI articles
on MSDN, they've got some good suggestions for that kind of thing.

"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message
news:Oq**************@TK2MSFTNGP14.phx.gbl...
Don't use a GET (using a querystring), but rather a POST to the target
page.
The user then won't see any info in the address bar

jeff

"Gary Townsend (Spatial Mapping Ltd.)" <ga***@spatialmapping.com> wrote in message news:crNjd.127215$df2.85635@edtnps89...
Good afternoon,

I am building an application that uses ASP .NET, and Blackmoon FTP
Server, My plan currently is to automate some user processes one of
those processes is to allow them to download files in their FTP Root
directories via HTTP for our clients who are behind firewalls which
prevent them from using the FTP protocol.

So to this end i have created a page which lists all thier files out,
then provides a link that would spawn a new window which would initiate the transfer. Couple problems exist for me being that i have only been
using ASP .NET for 2 weeks now my question is this.

1) Is there possibly a better way to initiate the file transfer without
spawning a new window

2) if spawning a new window is the route i go is there a way to encrypt
the string i send to the new page so that people can hack the file
transfer page to download any files they want.

Any suggestions on improving my approach to this problem are also
welcome.
Gary Townsend
Systems and Web Developer
Spatial Mapping Ltd.
http://www.spatialmapping.com
250 564 1928



Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: wqhdebian | last post by:
As far as I know,when encrypt or decrypt ,a key must first be got,and the key is first generate by a tool or from SecurityRandom,that means I can not generate the same key with the same input.Does...
3
by: Russ Reynolds | last post by:
SQL Server 2000: ######################################################## I run the following as a normal query from Analyzer: ######################################################## SELECT...
1
by: Benoît | last post by:
Hi, I have generated two keys : "C:>openssl req -nodes -new -x509 -keyout ben.key -out ben.crt -days 3650" I try to encrypt/decrypt a string like "JOHN" with these asymetrics keys. With the...
14
by: msnews.microsoft.com | last post by:
How can I encrypt and decrypt string?
20
by: Drebin | last post by:
It's a long story really, but the bottom line is we need to encrypt or obfuscate a clear-text 9-digit SSN/taxpayer ID into something less than 21 characters. It doesn't need to be super-secure,...
2
by: fineman | last post by:
Hi all, I want to get a 64bit(8 bytes) Encrypt result use DES class in the VS2005. Though I encrypt data is 64bit(8 bytes), but DES return encrypt result that always is 128bit(16 bytes), I don't...
4
by: dusiapapa | last post by:
Hello, all! I'm faced with next problem. I have ASP.NET page which takes url-parameters from ColdFusion site. These parameters are encrypted with ColdFusion Encrypt function and I can not...
3
by: JDeats | last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0...
6
by: Aneesh P | last post by:
Hi All, I need to encrypt some fields esp password key values in configuration file while installting the application using .Net installer project and decrypt those values from my...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...

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.