Click here to Skip to main content
11,790,021 members (48,877 online)
Rate this: bad
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
which will be implemented in software to check,read(decrypt, encrypt) and display data in lic file. Right now I am using
class to validate license, and I need help on reading, displaying data from file. Any advices? So far I got only this

    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 = null;
this is WindowsFormApplication, but I am planning to use this code in my dll. Any help is welcome.
Posted 21-Aug-12 2:03am

1 solution

Rate this: bad
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.
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 1,029
1 Maciej Los 790
2 KrunalRohit 686
3 CPallini 606
4 Richard MacCutchan 460

Advertise | Privacy | Mobile
Web03 | 2.8.1509028.1 | Last Updated 23 Aug 2012
Copyright © CodeProject, 1999-2015
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