internal void Generate(string registeredEmail, DateTime issueDate, int numberOfDays) { RegisteredEmail = registeredEmail; IssueDate = issueDate; ExpirationDate = IssueDate.AddDays(numberOfDays); LicenseKey = string.Format("{0:0000}{1:00}{2:00}{3:0000}{4:00}{5:00}{6}", IssueDate.Year, IssueDate.Month, IssueDate.Day, ExpirationDate.Year, ExpirationDate.Month, ExpirationDate.Day, RegisteredEmail); LicenseKey = LicenseKey.Encrypt(Shared.ENCRYPTION_KEY); }