[CLOSED] License Key Encrypted

  1. #1

    [CLOSED] License Key Encrypted

    Can this KEY be encrypted in web.config ? How to decrypt and call?
    Or, can this KEY be written directly in the program without putting it in web.config ? How to call?


    Thanks
    Last edited by fabricio.murta; Dec 04, 2016 at 1:34 PM.
  2. #2
    Hello @CPA1158139!

    The key can't be encrypted in Web.config and there's no hardcoding of the key in the built DLL. The key is not necessary in the development environment's Web.config, only on production hosting, similarly to the database connection credentials (connection string) should be present in Web.config.

    Even if the key was cryptable, how useful would that be? Copypasting the key will work no matter how strong and complex the cryptography is. If the key was hardcoded, simply by copying the DLL will carry the key either. So, general rule of thumb is, leave the key only on production server and trustworthy (and/or contract-signed) people with access to the production server and key.

    Again, the development computer does not need a key to run. When running an Ext.NET website from Visual Studio (either with debugging enabled or disabled), the pages should not ask for the license key.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    There are two ways to set the License Key within your application:

    Option 1:

    Application wide within the Application_Start Event of your projects Global.asax file.

    Example

    void Application_Start(object sender EventArgs e) 
    {{
        this.Application["Ext.Net.LicenseKey"] = "Your-License-Key-Here";
    }}
    Option 2:

    Application wide by adding to the Web.config file.

    Example

    <?xml version="1.0"?>
    <configuration>
        <configSections>
            <!-- Add "extnet" configuration section to Web.config -->
            <section name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false" />
        </configSections>
    
        <!-- Add "licenseKey" config -->
        <extnet licenseKey="Your-License-Key-Here" />
    </configuration>
  4. #4
    Thank you for your answer.It basic use I know, is to ask the way of encryption. We still want to be able to have the method to encrypt the key that we own because it is made by paying for it.I want to protect what I buy. After the deployment on production server, we also used only for the release of the program, and then can not be arbitrarily applied to other things.Some people with access to the production server may not always be trustworthy. He easily got the key, will no longer buy, even to profit.Can provide a way to decide whether we need to do encryption?
  5. #5
    Are you re-distributing the source code for your Application?

    If no, then put the license key in the Global.asax.cs and add a term to your End User License Agreement preventing decompilation of the Assembly.
    Geoffrey McGill
    Founder
  6. #6
    Ok.Thanks a lot.Pls close

Similar Threads

  1. Replies: 9
    Last Post: Oct 07, 2013, 11:41 PM
  2. GridPanel convert encrypted text characters
    By ismailkocacan in forum Examples and Extras
    Replies: 1
    Last Post: Nov 04, 2011, 4:42 PM
  3. License only
    By Argons in forum Licensing
    Replies: 1
    Last Post: Jul 28, 2009, 3:01 PM
  4. About Developer License and Team License
    By allen.zhao in forum Licensing
    Replies: 3
    Last Post: Jul 21, 2009, 12:10 AM
  5. Replies: 1
    Last Post: Mar 19, 2009, 6:30 PM

Posting Permissions