Before you can use c # how to achieve software license?

Do a piece of software, customer requirements, the software used under license others to use the software. I ask how to do this?

Design a file or table used to store the registration information may be the date of final maturity (design their own encryption algorithm)
when you enter a user name and password, check directly into use within the period expired prompts for registration code













            }
            IF (to Convert.ToDateTime (System.DateTime.Now.ToString ( "the MM-dd-YYYY"))! =
                To Convert.ToDateTime (to Convert.ToDateTime (DSTp.Tables [0] .Rows [0] [ "ServerDate"] .ToString ()). the ToString ( "the MM-dd-YYYY")) ||
                to Convert.ToDateTime (to Convert.ToDateTime (DSTp.Tables [0] .Rows [0] [ "ServerDate"]. the ToString ()). the ToString ( "yyyy-MM-dd"))! =
                Convert.ToDateTime (Convert.ToDateTime (sLogonLastDate) .ToString ( "yyyy-MM-dd")))
            {
                MessageBox.Show ( "current computer date may be a problem, please modify ! continue after the date "," prompted "MessageBoxButtons.OK, MessageBoxIcon.Stop);
                return to false;
            }
            ! IF (ps.Trim () = DSTp.Tables [0].Rows[0]["zzdes"].ToString().Trim())
            {
Registration information error, please enter the registration code to re-register! ";











                rg.ShowDialog ();
                return to false;
            }

            IF (System.DateTime.Now> to Convert.ToDateTime (sLastDate)) // || to Convert.ToDateTime (sLogonLastDate)> to Convert.ToDateTime (sLastDate)
            {
                IF (System.DateTime.Now > Convert.ToDateTime (sLastDate) .AddDays (7))
                {
                    frmRegister rg = new new frmRegister ();
                    //rg.LTitle.Text = "software service period is over, if you need to continue to use your renewals!";
                    rg.ShowDialog ( );
                    return to false;
                }
                the else
                {
                    Ds = Convert.ToDateTime TimeSpan (sLastDate) .AddDays (7) - System.DateTime.Now;
                    MessageBox.Show ( "System Services has expired, please renew else will!" + Convert.ToInt32 (ds.Days) .ToString () + "days will be discontinued", "prompted" MessageBoxButtons.OK, MessageBoxIcon.Stop);
                    return to true;
                }
            }
            return to true;
        }

First try to determine if the offline or online authorization authorized.
The second software code to protect the uniqueness prevent others from reverse engineering to crack.

If the authorization is online, do a service to be exchanged by authorized private and public keys to decrypt has permission
If you are offline authorization, need to do
a small bee forum posting machine management and calculation of time machine code.
If you have a flash, the flash memory can be read via USB.
It can also produce authorization file.

Published 13 original articles · won praise 0 · Views 437

Guess you like

Origin blog.csdn.net/netyou/article/details/104213171