Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 142431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:56:08+00:00 2026-05-11T07:56:08+00:00

I have an ASP.Net application that is hosted on my corporate clients web servers

  • 0

I have an ASP.Net application that is hosted on my corporate clients web servers on their internal networks.

I wish to enforce various known licensing terms (expiry date/ number of users etc etc)

I am planning to use an encrypted xml document containing the terms as key/value pairs and store it on the web server as an encrypted flat text file.

I then plan to use a custom security Httpmodule to decrypt the encrypted file and extract and store the terms in memory (Application?) and then enforce the terms during each page request for the relevant area of the application.

Is there a better approach for enforcing license terms for a web application?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T07:56:08+00:00Added an answer on May 11, 2026 at 7:56 am

    I chose a different route: I simply placed the licensing information in an encrypted field in the database so that I didn’t have to worry about an Httpmodule. SQL Server has EncryptByKey and DecryptByKey functions that make it quite easy to get/put encrypted data. I also used a simple passphrase key to make the entire process very easy to manage. I appreciate your approach – it is really quite clever – but I think you’ve made life a bit too difficult on yourself!

    As far as security goes, this is relatively safe as long as you are not actually providing the source code. The only drawback is the possibility that they’ll disassemble your code in an attempt to extract the passphrase or other encryption technology (this may well be true of your Httpmodule approach as well). This is not something I worry about, however, as I am working mostly with Fortune 500 companies and I have a legal agreement with them that includes a ‘no disassembly’ clause. The vast majority of companies simply won’t take a chance on the legal jeopardy they would incur by doing this just to get some extra features or expand their database. If you are distributing to thousands of otherwise anonymous users, on the other hand, it may be a different story.

    Update: if you are not using SQL Server, you could also use some form of code-based encryption to save/retrieve your licensing information. If you need an encryption class, I uploaded a simple but extremely strong AES class for a previous answer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an ASP.NET web application that we offer as a Service (it's hosted
i have a silverlight application that is hosted within a asp.net web application. in
I currently have an asp.net website hosted on two web servers that sit behind
I have an ASP.NET application that is hosted in timezone A and is being
I have an ASP.NET application that calls other web services through SSL (outside the
I have a asp.net web application that uses C#. It logs in on a
I have a ASP.NET Web Forms application that internally makes many SOAP and REST
I have a C# Windows Service and an ASP.NET 4.0 web application that are,
I have an asp.net mvc 2 web application that connects to a WCF web
I have a Asp.net/C# web Application hosted under IIS7.5 server 2008 64bit. my application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.