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 8440571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:19:43+00:00 2026-06-10T08:19:43+00:00

I have a ASP.NET MVC web application that is supposed to be sold in

  • 0

I have a ASP.NET MVC web application that is supposed to be sold in various editions with each edition unlocking more and more features of the application. Think something like editions of Visual Studio – Professional allows you to do X and Y, but with Premium, you can also do Z.

I am trying to enhance the application so that it would possible to reliably determine which edition was actually purchased. Or, in other words, to somehow store the information about the edition so that it is easily accessible by the application. I am not looking for any fancy protection mechanism, just something that would make cracking the app more complicated than rewriting some plaintext file 🙂

One way I could think of is to use public/private key pair.
I generate a licence key carrying the edition payload, encrypt it with the private key, and send it to a customer. The customer then inputs the encrypted licence key, which gets stored somewhere, e.g. a database. The public key would be hard-coded to our webapp, so that the app can decrypt the licence key and decide whether to allow access to some feature or not.

This would probably work, but it somehow seems lame to have the public key hard-coded. Is there some alternative to the solution proposed above (perhaps I am trying to reinvent the wheel here)? Are there any glaring flaws with it?

  • 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. Editorial Team
    Editorial Team
    2026-06-10T08:19:44+00:00Added an answer on June 10, 2026 at 8:19 am

    It is good that you are not trying to achieve perfect security, because you are trying to implement some kind of content protection scheme, and those are bound to fail without explicit support of the application environment (e.g. OS) – and they will mostly fail even then.

    Normally you don’t encrypt with a private key, you sign with a private key. You could send a public key with the application and verify within your application that the edition was signed for that particular public key.

    There are a lot of ways to attack this scheme, and it can be enhanced by obscuring some more, but that’s basically all you can do.

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

Sidebar

Related Questions

I have an asp.net mvc application that uses web service. I have various controllers
I have a layered web application that I built with ASP.NET MVC 4, WebAPI
I have an Asp.Net MVC application that works in the vs.net development web server.
Assuming I have a ASP.NET MVC 3 application that runs in a web farm
I am writing a web application on Asp.Net MVC 3. Assume that we have
I have an ASP.NET MVC web application that implements a custom membership provider. The
I have an asp.net mvc 2 web application that connects to a WCF web
I have built an ASP.NET mvc web application and it seems that some of
I currently have a ASP.Net MVC web application that needs to upload large files
I have an Asp.Net MVC Web Application that I am developing. I have TeamCity

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.