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

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 1591
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: 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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.