Exemplo n.º 1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            System.Environment.SetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS",
                                                      Server.MapPath("programmingforthecloudbf-c9a8408204a8.json"));

            var cipher = KeyRepository.Encrypt("hello world");

            //string realvalue = KeyRepository.Decrypt(cipher);
            new LogsRepository().WriteLogEntry("App starting...");
        }