PC Review


Reply
Thread Tools Rate Thread

"What is better" question ...

 
 
Chad Z. Hower aka Kudzu
Guest
Posts: n/a
 
      22nd Jun 2005
"Tom Rahav" <(E-Mail Removed)> wrote in
news:(E-Mail Removed):
> I need to store some information about my application, such as trail
> version limits, allowed modules, etc.
> My question is whether it's better to store it in the windows
> registry, or in a binary file in the application's directory. My


Neither. Use the user local storage. The paths are listed in the Application object.



--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Make your ASP.NET applications run faster
http://www.atozed.com/IntraWeb/
 
Reply With Quote
 
 
 
 
Tom Rahav
Guest
Posts: n/a
 
      23rd Jun 2005
Hi!

I need to store some information about my application, such as trail version
limits, allowed modules, etc.
My question is whether it's better to store it in the windows registry, or
in a binary file in the application's directory. My question is more aimed
to the security issues, because I don't face performence as problem, since I
need it just what the apllication starts.

Thanks!
Tom Rahav.


 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      23rd Jun 2005
Hi Tom,

As for the where to store those privacy datas in our published programs
question, IMO, registry or any other external
config files may be simple for develop and use, but none of them are the
secure means. Yes, there used to be many softwares which use the registry
to store such trial version limit info, however since nowadays we can
easily capture such info through may tools such as regmon, this is no
longer a reasonable means.
Based on my experience, most application will embed such information in the
application's binary executable file itself. I know that some applcation
will embed the application's startup times in the PE file's end and read
(and update it) at the beginning of the application and this is usually
done by calling raw win32 system API to read application memory. In .net
world, I think you can consider embed such info into a binary file , and
use some encryption/digitsign means to protect it from being tampered.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


 
Reply With Quote
 
Tom Rahav
Guest
Posts: n/a
 
      23rd Jun 2005
Hello Steven,

If I do understand you well, storing such information in the application's
binary file, require re-compilation for each change in these variables. What
I actually want is to provide the the ability to add and remove modules
dinamically, without creating a different installation / exe file per each
version. Did I get you well?
Thanks!
Tom.

"Steven Cheng[MSFT]" <v-(E-Mail Removed)> wrote in message
news:urUMw%(E-Mail Removed)...
> Hi Tom,
>
> As for the where to store those privacy datas in our published programs
> question, IMO, registry or any other external
> config files may be simple for develop and use, but none of them are the
> secure means. Yes, there used to be many softwares which use the registry
> to store such trial version limit info, however since nowadays we can
> easily capture such info through may tools such as regmon, this is no
> longer a reasonable means.
> Based on my experience, most application will embed such information in
> the
> application's binary executable file itself. I know that some applcation
> will embed the application's startup times in the PE file's end and read
> (and update it) at the beginning of the application and this is usually
> done by calling raw win32 system API to read application memory. In .net
> world, I think you can consider embed such info into a binary file , and
> use some encryption/digitsign means to protect it from being tampered.
>
> Thanks,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>



 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      23rd Jun 2005
A bit confusing ?

You could have just those modules in a directory and load them if available
or list them in the config file...

Do you mean you should have a mean to enable/disable the module. Past
applications protected with dongle were using an identifier for each module
combined together with an expiration date and giving a last result...

Each time the user wants to add a module you issue them the new result of
this computation else they are not recognized...

Not sure what is the exact question ?

Patrice

--

"Tom Rahav" <(E-Mail Removed)> a écrit dans le message de
news:(E-Mail Removed)...
> Hello Steven,
>
> If I do understand you well, storing such information in the application's
> binary file, require re-compilation for each change in these variables.

What
> I actually want is to provide the the ability to add and remove modules
> dinamically, without creating a different installation / exe file per each
> version. Did I get you well?
> Thanks!
> Tom.
>
> "Steven Cheng[MSFT]" <v-(E-Mail Removed)> wrote in message
> news:urUMw%(E-Mail Removed)...
> > Hi Tom,
> >
> > As for the where to store those privacy datas in our published programs
> > question, IMO, registry or any other external
> > config files may be simple for develop and use, but none of them are the
> > secure means. Yes, there used to be many softwares which use the

registry
> > to store such trial version limit info, however since nowadays we can
> > easily capture such info through may tools such as regmon, this is no
> > longer a reasonable means.
> > Based on my experience, most application will embed such information in
> > the
> > application's binary executable file itself. I know that some applcation
> > will embed the application's startup times in the PE file's end and read
> > (and update it) at the beginning of the application and this is usually
> > done by calling raw win32 system API to read application memory. In .net
> > world, I think you can consider embed such info into a binary file , and
> > use some encryption/digitsign means to protect it from being tampered.
> >
> > Thanks,
> >
> > Steven Cheng
> > Microsoft Online Support
> >
> > Get Secure! www.microsoft.com/security
> > (This posting is provided "AS IS", with no warranties, and confers no
> > rights.)
> >
> >

>
>



 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      24th Jun 2005
Thanks for Patrice's input.

Hi Tom,

Yes, injecting info in application's binary file dynamically in runtime is
diffcult(need to use raw win32 API) and this is even impossible in .net
world when we strong-named our assembly. Anyway, for your scenario, I think
you can put those info in a separtae binary file, and to make it more
secure, I suggest you perform encryption and digitsign on them.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
cody
Guest
Posts: n/a
 
      27th Jun 2005
If the information is User- or Computer dependent use the registry,
otherwise use the application's directory.

"Tom Rahav" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> Hi!
>
> I need to store some information about my application, such as trail

version
> limits, allowed modules, etc.
> My question is whether it's better to store it in the windows registry, or
> in a binary file in the application's directory. My question is more aimed
> to the security issues, because I don't face performence as problem, since

I
> need it just what the apllication starts.
>
> Thanks!
> Tom Rahav.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Click the star to watch this topic] "bollywood actress""bollywood wallpapers" "bollywood news" "bollywood movies" "bollywood videosongs" "bollywood masala" "bollywood" "b Naeem Microsoft C# .NET 0 4th Jan 2010 07:57 AM
Field Names: "LongName", "ShortName", "Code", "Description","Comments" PeteCresswell Microsoft Access 2 26th Feb 2009 12:41 AM
Validation question - allow -500%, 0%, "=50%*50%" but forbid "A", "", " ", "-" ? tskogstrom Microsoft Excel Programming 2 27th Nov 2006 10:50 AM
<FORM METHOD="post" onSubmit="return fieldcheck()" name="orientation" action="http://ws-kitty.BU.edu/AT/survey/orientation/script/write.asp" language="JavaScript"> Joeyej Microsoft ASP .NET 0 4th Jun 2004 09:55 PM
Manual "Windows Update" produces "ActiveX/active scripting" error message even with "LOW" security level setting in "Trusted" Zone Ray2 Windows XP Help 1 14th Nov 2003 07:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:58 PM.