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

Need better model to implement this scenario

JJ
I have a list of contacts in a webpage and the list is created throught the
repeater controls. During ItemDataBound event of the repeater, I encrypt
the ID of the contacts. When user double clicks on the contact, encrypted
ID of the doubled-clicked contact is sent as a querystring (no postback,
thru javascript) to the detailed page (so that users cannot type in plain
text id and have access to contacts that they are not entitled to), where I
decrpyt the ID and send it to the database and retrieve detailed information
about the contact.

Everytime the user loads that page, encryption is need to encrypt the ID (if
there are 40 contacts, that means 40 different encryptions). I know that
encryption/decryption is resource intensive operations. So I am trying to
find a better model. One option would be to store encrypted ID at the time
I insert a new contact into the database. That way the number of
encryptions is reduced.

What would be the efficient way to implement this scenario. I am open to
any comments/suggestions.

Thanks all
Dec 20 '06 #1
1 1329
If your only concern is that you don't have a predicable ID the user can
modify in the QueryString, you can get around the expense of the strong
encryption and just create a weak encryption system of your own. An
encryption algorithm is just an operation to scramble/unscramble a value to
make it unreadable/readable. If no one knows your algorithm, you're good to
go. Of course, if someone is really determined, they can analyze the
multitude of values they know DO get results and try to figure out your
algorithm. You have to decide how much security you really need, in the
end.

Instead of encrypting the values, you could instead just add security onto
the page that displays the contact details.

"JJ" <no****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>I have a list of contacts in a webpage and the list is created throught the
repeater controls. During ItemDataBound event of the repeater, I encrypt
the ID of the contacts. When user double clicks on the contact, encrypted
ID of the doubled-clicked contact is sent as a querystring (no postback,
thru javascript) to the detailed page (so that users cannot type in plain
text id and have access to contacts that they are not entitled to), where I
decrpyt the ID and send it to the database and retrieve detailed
information about the contact.

Everytime the user loads that page, encryption is need to encrypt the ID
(if there are 40 contacts, that means 40 different encryptions). I know
that encryption/decryption is resource intensive operations. So I am
trying to find a better model. One option would be to store encrypted ID
at the time I insert a new contact into the database. That way the number
of encryptions is reduced.

What would be the efficient way to implement this scenario. I am open to
any comments/suggestions.

Thanks all


Dec 20 '06 #2

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

Similar topics

34
by: yensao | last post by:
Hi, I have a hard time to understand difference and similarities between Relational database model and the Object-Oriented model. Can somebody help me with this? Thank you in advance. ...
2
by: Bonj | last post by:
Hello Can anyone assist with the following class hierarcy problem? I have a series of window classes, the object model currently being as such: Window / | \ / | \...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
7
by: Jack Addington | last post by:
I've got a fairly simple application implementation that over time is going to get a lot bigger. I'm really trying to implement it in a way that will facilitate the growth. I am first writing a...
8
by: Tim Geiges | last post by:
Since I am being challenged with learning c# I figured I could pass some of the pain on to you guys :-) I have another question(this one is important for me to fix before I can get my app to Beta)...
2
by: msnews.microsoft.com | last post by:
Hello, I have the scenario. I m building an application either in asp.net or window application. This application is base on n-tier application model. Let us take example of Northwind Database in...
1
by: msnews.microsoft.com | last post by:
Hi Every one, I need your suggestion. I want to implement a scenario. The Scenario is "I build a web site. I deploy it to web server. Now I want and auto email alter. The responsibility of...
0
by: Shane Story | last post by:
My other thread on serialization seemed to be stagnant and I still have questions, so I decided to post this example of what I need to know. I am trying to use binaryformatter. I have no trouble...
11
by: Alan Mailer | last post by:
A project I'm working on is going to use VB6 as a front end. The back end is going to be pre-existing MS Access 2002 database tables which already have records in them *but do not have any...
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: 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
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.