472,803 Members | 1,094 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,803 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 1309
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.