473,782 Members | 2,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1345
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******** ********@TK2MSF TNGP04.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
7112
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. Yensao
2
1779
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 / | \ / | \ MDIClientWindow | TreeViewWindow WndProcWindow / \
19
4109
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 the code that implements managing unbound controls on forms given the superior performance of unbound controls in a client/server environment. I can easily understand a newbie using bound controls or someone with a tight deadline. I guess I need...
7
2360
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 WinForms interface and then need to port that to a web app. I am kinda stuck on a design issue and need some suggestions / direction. Basically I have a business layer that I want to use to process any dataentry logic (row focus changes, data...
8
2324
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) My app (an image viewer) opens with a Main form with a file explorer if you open the program with the exe, but opens with the ImageView form if you double click an image file, if you want to see the Main form once the ImageView is open the...
2
1934
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 SQL SERVER. i build an asp.net page. On that page i place the grid with one template column. In that column i put HTML Table with two rows. In First row there are one combobox and two textboxes. In the second row there is another DataGrid means...
1
1079
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 this alter is that it will send the emails to registered users whether my site is hit by the user or not. It will work independently." For that what you suggest me to implement it in .NET Technology. Can I implement it using .NET Web Services.
0
1068
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 saving (serializing), but when I go to deserialize I always get errors. It appears that I cannot set a breakpoint or anything to discover where the problem is. I am serializing by implementing ISerializable: The GetObjectData method and the...
11
4498
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 AutoNumber* fields in them. Correct me if I'm wrong, but I'm assuming this means that I cannot now alter these existing Access tables and change their primary key to an "AutoNumber" type. If I'm right about this, I need some suggestions as to the...
0
9479
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
10146
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...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8967
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...
1
7492
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6733
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5378
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
5509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4043
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

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.