473,379 Members | 1,201 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,379 software developers and data experts.

encrypting / encoding login info within a URL

Hi there,

We want to be able to encrypt the user ID and password within a URL, so
when we send the URL via email, they'll be able to click said URL, and the
aspx page should be able to decode it and authenticate it.

I'm thinking the url would look something like this:

http://localhost/login.aspx?id=af3awfalj3o3i3ok0890

When decoding the "id" part, the decoding function should be able to decode
/ decrypt the user id and password, authenticate with the DB and continue.
Could anyone point me in the right direction in udertaking something like
this?

it doesn't matter if the solution is in c# or vb

Thanks!
Jorge
Nov 19 '05 #1
2 1674
And you expect this to be a secured system? If the message is intercepted,
or passed around, then anyone can access the system.

You should look into using some for of server authentication such as
FormsAuthentication or Integrated Security. Send the URL to anyone that
wants it, but then when they click it, the site should prompt for
credentials. Once authenticated, then the site could redirect to the URL
from the link.

If, however, the link will be given to people who would be considered guests
with no credentials in the system, then you should architected some isolated
area such as some sites have where the owner of content can make it public
to a select group. The guests might have their own credentials or the area
would simply be publicly accessible.

Sorry to be so blunt, but if the username and password is part of the URL,
you have essentially given that information to all people in the world.

"hellrazor" <jo***@another-world.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
Hi there,

We want to be able to encrypt the user ID and password within a URL, so
when we send the URL via email, they'll be able to click said URL, and the
aspx page should be able to decode it and authenticate it.

I'm thinking the url would look something like this:

http://localhost/login.aspx?id=af3awfalj3o3i3ok0890

When decoding the "id" part, the decoding function should be able to decode / decrypt the user id and password, authenticate with the DB and continue.
Could anyone point me in the right direction in udertaking something like
this?

it doesn't matter if the solution is in c# or vb

Thanks!
Jorge

Nov 19 '05 #2
"Peter Rilling" <pe***@nospam.rilling.net> wrote in
news:#N**************@TK2MSFTNGP10.phx.gbl:
And you expect this to be a secured system? If the message is
intercepted, or passed around, then anyone can access the system.

You should look into using some for of server authentication such as
FormsAuthentication or Integrated Security. Send the URL to anyone
that wants it, but then when they click it, the site should prompt for
credentials. Once authenticated, then the site could redirect to the
URL from the link.

If, however, the link will be given to people who would be considered
guests with no credentials in the system, then you should architected
some isolated area such as some sites have where the owner of content
can make it public to a select group. The guests might have their own
credentials or the area would simply be publicly accessible.

Sorry to be so blunt, but if the username and password is part of the
URL, you have essentially given that information to all people in the
world.

"hellrazor" <jo***@another-world.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
Hi there,

We want to be able to encrypt the user ID and password within a URL,
so when we send the URL via email, they'll be able to click said URL,
and the aspx page should be able to decode it and authenticate it.

I'm thinking the url would look something like this:

http://localhost/login.aspx?id=af3awfalj3o3i3ok0890

When decoding the "id" part, the decoding function should be able to

decode
/ decrypt the user id and password, authenticate with the DB and
continue.
Could anyone point me in the right direction in udertaking something
like this?

it doesn't matter if the solution is in c# or vb

Thanks!
Jorge



Hi,

To answer your question: NO, I do not expect this to be a secure system
at all. The data we're guarding does not warrant a higher level of
security. They simply want security by obscurity so the URL to not
outright display the user id and pw as it currently does:

http://localhost/login.aspx?id=blah&pw=yes

They are aware that whoever has the link can log in.

Originally I had server authentication, but they changed the requirements
so that they can log in just by clicking the url.

dang, even encoding the id/pw with rot-13 could work, but I'll take a
look at md5 and these other encoding algorithms (of which I know nothing
about!)

I agree with the rest of your email, but it's not the answer to my
problem.

thanks for the reply though ;)

Nov 19 '05 #3

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

Similar topics

7
by: steve | last post by:
Hi, I know there are a few free and paid php source code encryption scripts around. Has anyone used one, and any feedback? I am interested in encrypting source that is placed on a remote host....
11
by: Ghazan Haider | last post by:
I am posting this for the lack of a better newsgroup, and for the knowledge of people here, and because its only partially OT. We have a bunch of users with their computers at work. There are...
14
by: David Williams | last post by:
Hello all. Anyone know of a free program I can use to encrypt my php code? I would like it to be secure as possible. i.e. not viewable from the web. Also, is there an html encryptor or will...
3
by: Piotr | last post by:
MS has published on its sites javascript encoder, which enables "encrypting" javascript code. It allows hiding js code from being seen as a text file. There is a decoder for it, available in the...
6
by: Dayne | last post by:
Guys, I am writing a database application(vb.net , sql server) and is presently storing the connection settings in a xml file...not very secure though. What is a safer method in a dynamic...
0
by: Elliot M. Rodriguez | last post by:
I have a web app that uses Crystal Reports 8.5 along with VB.Net. When attempting to access reports by a UNC file share path, I was getting access denied errors. I solved this problem eventually...
2
by: Assimalyst | last post by:
Hi, I am creating a website where i want to allow some webforms to be accessible to all users, and those in a subdirectory available only to authenticated users. I have created a script to...
4
by: KC Eric | last post by:
Hi everyone, How can one encrypt an entire file? What I mean is not simply encrypting the content of the file, but also the file's property(e.g. file creation date, file's name, access right,...
19
by: Cord-Heinrich Pahlmann | last post by:
Hi, I have written a tool wich de/encrypts a few of my forum and bloggin-Passwords. My question is how secure it is. The following describes how I have encrypted my passwords. When I log in,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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...

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.