Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hey guys, I have created a program which is generating an encrypted license file *.lic, now I am working on a
RIAServicesLibrary 
which will be implemented in software to check,read(decrypt, encrypt) and display data in lic file. Right now I am using
LicenseManager
class to validate license, and I need help on reading, displaying data from file. Any advices? So far I got only this
 
[LicenseProviderAttribute(typeof(LicFileLicenseProvider))]
    public class LicensedClass : IDisposable
    {
        private License license = null;
 
        public LicensedClass( TextBox tex,TextBox tex2)
        {
 

            license = LicenseManager.Validate(typeof(Form1), this);
 
            tex.Text=("License is Valid");
        }
 
        public void Dispose()
        {
            if (license != null)
            {
                license.Dispose();
                license = null;
            }
        }
    }
this is WindowsFormApplication, but I am planning to use this code in my dll. Any help is welcome.
Posted 21-Aug-12 3:03am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

My advice is that you must use hashed data in your .lic. Because if you can decrypt the encrypted data anyone can decrypt it. So, you have a security issue there.
 
Remember that in silverlight isn't recommendable to read file from client PC. May be this class help you in server & client scenario for Silverlight: AesManaged
 
Hope it helps in any way.
  Permalink  
v2
Comments
Christian Amado at 21-Aug-12 15:11pm
   
What part? Sergey
Nicorette at 22-Aug-12 2:13am
   
Lic file is not in clients computer, it is on server in main's application ClientBin folder. I am using AesManaged in license generating application to encrypt and decrypt data in lic file. So how should I proceed in reading and displaying data?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 515
1 Maciej Los 349
2 Richard MacCutchan 220
3 BillWoodruff 209
4 Mathew Soji 160
0 OriginalGriff 8,654
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,639
3 Maciej Los 5,229
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 23 Aug 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100