Click here to Skip to main content
11,577,258 members (53,497 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 DamithSL 155
1 Afzaal Ahmad Zeeshan 125
2 OriginalGriff 115
3 Richard MacCutchan 100
4 Abhinav S 90
0 OriginalGriff 820
1 Sergey Alexandrovich Kryukov 676
2 Abhinav S 528
3 F-ES Sitecore 420
4 Suvendu Shekhar Giri 375

Advertise | Privacy | Mobile
Web04 | 2.8.150603.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