PageRenderTime 55ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/Kronos/Kronos/CLASSES/globalvariables.cs

https://github.com/lle/soen341kronos
C# | 25 lines | 22 code | 3 blank | 0 comment | 0 complexity | fc407986a972cdc091fd2096ce343e9d MD5 | raw file
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Security.Cryptography;
  6. using System.Text;
  7. namespace Kronos.CLASSES
  8. {
  9. public static class globalvariables
  10. {
  11. public static string user_logged;
  12. public enum semester { fall, winter, summer, fallwinter };
  13. public enum day { monday, tuesday, wednsday, thursday, friday };
  14. public enum course_tag { CIVI, SOEN, ELEC, COEN, COMP, BLDG, INDU };
  15. public static string EncodePassword(string originalPassword)
  16. {
  17. MD5 crypto_Service;
  18. crypto_Service = new MD5CryptoServiceProvider();
  19. return BitConverter.ToString(crypto_Service.ComputeHash(ASCIIEncoding.Default.GetBytes(originalPassword)));
  20. }
  21. }
  22. }