473,789 Members | 2,617 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1699
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
FormsAuthentica tion 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***@anothe r-world.com> wrote in message
news:Xn******** *************** ***********@207 .46.248.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.r illing.net> wrote in
news:#N******** ******@TK2MSFTN GP10.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
FormsAuthentica tion 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***@anothe r-world.com> wrote in message
news:Xn******** *************** ***********@207 .46.248.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
2029
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. -- Posted using the http://www.dbForumz.com/ interface, at author's request Articles individually checked for conformance to usenet standards Topic URL: http://www.dbForumz.com/PHP-Obfuscating-Encrypting-ftopict187987.html
11
4876
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 reports that the users need, which could be in html, php, asp, jsp, whatever. Now I am trying to eliminate the login window entirely. In an html request, the client (firefox, ie, etc) sends the clients hostname, IP, a bunch of other stuff, but...
14
7410
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 the php encryptor encrypt that, too? Thanks, David
3
9839
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 net, freeware, srcdec14.exe. I have tested both, encrypting, decrypting, the source and the final files are identical. But what I met on a certain site is a js file, encoded I think in another way, because I cannot decrypt it using the...
6
2091
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 environment? Dayne
0
976
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 by running the aspnet process as a Domain Admin account (changed the processModel attribute in machine.config). I tried running the code block using impersonation as the same account, yet I continued to get Access Denied errors, even on...
2
1504
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 authenticate users from a stored sql database from a login page login.aspx. private void Submit1_ServerClick(object sender, System.EventArgs e)
4
1902
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, etc), so the input is a file, say abc.txt, after encryption and then decryption, the user can get the whole abc.txt file instead of just the content of the file. Thanks a lot!
19
2453
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, the Login-Password is changed into a md5-Hash and is compared to the login-password in the db. If the passwords are the same the use is logged in (common procedure). Then the clear-text
0
9511
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10199
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9020
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5417
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4092
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3700
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.