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 4 1629
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
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
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
XXX12XX12XXXX20 04 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
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
XXX12XX12XXXX20 04 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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 strip out
any part of RestrictedPython that's not necessary for doing capabilities
and do all security using just capabilities.
The basic idea behind capabilities is that you don't give any piece of
code you don't trust a reference to something...
|
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 environment, which basically means
that I want to allow only a specific set of modules to be used by the
scripts, so that it wouldn't be possible for them to remove files from the
hard drive, kill processes or do other nasty stuff.
Is there any...
|
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 Isabel
I have gotten well over 10K such messages.
--
|
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 accesses to the object must go through that parameter.
Does this mean that
printf("%s", "%s");
|
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 component from C# client hidden/restricted attributes seems to have
no effect. Is there any way to restrict C# client's access to certain
| |
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 machine folder) it gives me
Access denied error.
How can I programmatically give permission to the foder for restrcited user.
|
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 requirement? How should I
generate this code, validate it and let the code be active for a day?
Thanks
|
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 to access only his particular folder, I
dont want to create uses in unix, e.g
fp = open(PATH, 'w') # If this PATH is defined then use can access
files else he cant .. is there is any way?
|
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 contents of the
array through arr. If I was using
pointers I would do for example
int * restrict p = malloc(50 * sizeof(int))
Is there a way to do the same thing using
arrays ?
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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...
|
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,...
|
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...
|
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...
|
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();...
|
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: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |