473,473 Members | 2,097 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Restricted access to a form?

I have requirement where client has to call us to get a key to access a
particular form. Secondly, I want the code to be valid for a day. Can some
guide me in right direction to implement this requirement? How should I
generate this code, validate it and let the code be active for a day?

Thanks

Jul 21 '05 #1
4 1592
How's this....when a valid code is entered, note the time and date and
write that value to a hidden location, either filesystem or registry or
isolated storage. Whenever access to the form is requested make sure
that the current datetime is within 1 hr of the saved datetime.

A hack at best but it's free :)

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
Job Lot wrote:
I have requirement where client has to call us to get a key to access a
particular form. Secondly, I want the code to be valid for a day. Can some
guide me in right direction to implement this requirement? How should I
generate this code, validate it and let the code be active for a day?

Thanks

Jul 21 '05 #2
And how would that valid code is generated? What would be the algorithm? Any
clues would helpful.

"Sijin Joseph" wrote:
How's this....when a valid code is entered, note the time and date and
write that value to a hidden location, either filesystem or registry or
isolated storage. Whenever access to the form is requested make sure
that the current datetime is within 1 hr of the saved datetime.

A hack at best but it's free :)

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
Job Lot wrote:
I have requirement where client has to call us to get a key to access a
particular form. Secondly, I want the code to be valid for a day. Can some
guide me in right direction to implement this requirement? How should I
generate this code, validate it and let the code be active for a day?

Thanks

Jul 21 '05 #3
Well the simplest would be to use the date itself as a code, thus any
valid date would also be a valid code

Eg: Valid codes -> 12122004, Invalid Code 23239134

You can also use some kind of random numbers between the various parts
of the date to make it more secure for e.g. 12/12/2004 can be encoded as

XXX12XX12XXXX2004 where the X's are just random digits, you can use any
combination of such schemes.

But be aware that if the customer gets hold of a .Net Decompiler then it
would be very easy for him to crack this scheme, but in my experience
customers never bother to do that unless they are desperately in need of
your product, in which case they would rather buy the product for
support purposes..

Let me know if you need more help.

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
Job Lot wrote:
And how would that valid code is generated? What would be the algorithm? Any
clues would helpful.

"Sijin Joseph" wrote:

How's this....when a valid code is entered, note the time and date and
write that value to a hidden location, either filesystem or registry or
isolated storage. Whenever access to the form is requested make sure
that the current datetime is within 1 hr of the saved datetime.

A hack at best but it's free :)

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
Job Lot wrote:
I have requirement where client has to call us to get a key to access a
particular form. Secondly, I want the code to be valid for a day. Can some
guide me in right direction to implement this requirement? How should I
generate this code, validate it and let the code be active for a day?

Thanks

Jul 21 '05 #4
Thanks for the edification. I have used GUID to create a unique identifier.
When a user accesses the form, a window pops up with this GUID (Handle) and
they are asked to provide a valid key for the Handle. The key is actually
ascii value of each character in the handle with three "-" character in it. I
am writing the Handle, Key and System Date in config file and validating sum
of ascii values in Handle against the sum of key, checking three "-" exists
in the hey and also checking the system date against the date in config file.

How does this scenario sound? There is a problem though, user can change the
system date to the date they got the key and access the form. Is there anyway
of stopping this? Is there anyway for writing current date in the registry,
every time window (o/s) starts on user computer? This way, every time user
tries to access the form, I can check the date in the registry against the
system date. Also, how can I jiggle characters in a string?

Thanks
"Sijin Joseph" wrote:
Well the simplest would be to use the date itself as a code, thus any
valid date would also be a valid code

Eg: Valid codes -> 12122004, Invalid Code 23239134

You can also use some kind of random numbers between the various parts
of the date to make it more secure for e.g. 12/12/2004 can be encoded as

XXX12XX12XXXX2004 where the X's are just random digits, you can use any
combination of such schemes.

But be aware that if the customer gets hold of a .Net Decompiler then it
would be very easy for him to crack this scheme, but in my experience
customers never bother to do that unless they are desperately in need of
your product, in which case they would rather buy the product for
support purposes..

Let me know if you need more help.

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
Job Lot wrote:
And how would that valid code is generated? What would be the algorithm? Any
clues would helpful.

"Sijin Joseph" wrote:

How's this....when a valid code is entered, note the time and date and
write that value to a hidden location, either filesystem or registry or
isolated storage. Whenever access to the form is requested make sure
that the current datetime is within 1 hr of the saved datetime.

A hack at best but it's free :)

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
Job Lot wrote:

I have requirement where client has to call us to get a key to access a
particular form. Secondly, I want the code to be valid for a day. Can some
guide me in right direction to implement this requirement? How should I
generate this code, validate it and let the code be active for a day?

Thanks

Jul 21 '05 #5

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

Similar topics

30
by: Sean R. Lynch | last post by:
I've been playing around with Zope's RestrictedPython, and I think I'm on the way to making the modifications necessary to create a capabilities-based restricted execution system. The idea is to...
13
by: Rolf Magnus | last post by:
Hi, I would like to embed a python interpreter within a program, but since that program would be able to automatically download scripts from the internet, I'd like to run those in a restricted...
44
by: Julian V. Noble | last post by:
Dear C Mavens, Anyone here getting hosts of spam with nefarious attachments, purporting to be from M$ or its lackeys, into your mailbox? I neglected to spoof my header, and since Hurricane...
5
by: Peter Ammon | last post by:
It's my understanding that the printf() function is declared as int printf(const char * restrict format, ...); in stdio.h. And loosely speaking, if a parameter is declared as restricted, then...
0
by: Jussi | last post by:
Hi! I have a COM server object in which I have set certain interfaces restricted/hidden. For example With VB client these attributes works as excpected. However if I use this same COM...
1
by: Kiran_Juikar | last post by:
In my application, I want to copy some file from network location to local machine folder. It works fine for administrator but If I run it with restricted user (not having permissions to local...
4
by: Job Lot | last post by:
I have requirement where client has to call us to get a key to access a particular form. Secondly, I want the code to be valid for a day. Can some guide me in right direction to implement this...
21
by: iapain | last post by:
I'm developing a webIDE for python and I've 2 questions regarding it. 1. How can i disable some of the modules without deleting. e.g I wish to disable "os" module. 2. How can i force user code...
4
by: Spiros Bousbouras | last post by:
Is there a way to mimick restricted pointers using array syntax ? So I'm looking for something to add to a statement such as "int arr" which will tell the compiler that I will only access the...
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...
0
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...
0
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,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.