Decrypt0() public static method

public static Decrypt0 ( string cipherText, string key ) : string
cipherText string
key string
return string
Exemplo n.º 1
0
 public static string DownloadWeatherData()
 {
     // weather data
     using (WebClient wc = new WebClient())
     {
         string encData        = wc.DownloadString("http://tkm.ibb.gov.tr/data/IntensityMap/WeatherData.aspx");
         string weatherDataStr = TKMDecrypt.Decrypt0(encData, "26107354");
         return(weatherDataStr);
     }
 }
Exemplo n.º 2
0
 public static string DownloadAnnouncements()
 {
     // announcement data
     using (WebClient wc = new WebClient())
     {
         string encData         = wc.DownloadString("http://tkm.ibb.gov.tr/data/IntensityMap/AnnouncementData.aspx");
         string announceDataStr = TKMDecrypt.Decrypt0(encData, "50614732").Replace('\r', ' ').Replace('\n', ' '); // replace new lines
         return(announceDataStr);
     }
 }
Exemplo n.º 3
0
 public static string DownloadTrafficData()
 {
     // speed sensors
     using (WebClient wc = new WebClient())
     {
         string encData      = wc.DownloadString("http://tkm.ibb.gov.tr/data/IntensityMap/TrafficDataNew.aspx");
         string speedDataStr = TKMDecrypt.Decrypt0(encData, "62403715");
         return(speedDataStr);
     }
 }
Exemplo n.º 4
0
 public static string DownloadParkingData()
 {
     // parking data
     using (WebClient wc = new WebClient())
     {
         string encData        = wc.DownloadString("http://tkm.ibb.gov.tr/data/IntensityMap/ParkingLotData.aspx");
         string parkingDataStr = TKMDecrypt.Decrypt0(encData, "74205136");
         return(parkingDataStr);
     }
 }
Exemplo n.º 5
0
 public static string DownloadTrafficIndex()
 {
     // trafic index value
     using (WebClient wc = new WebClient())
     {
         string encData         = wc.DownloadString("http://tkm.ibb.gov.tr/data/IntensityMap/TrafficIndex.aspx");
         string trafficIndexStr = TKMDecrypt.Decrypt0(encData, "60413275");
         return(trafficIndexStr);
     }
 }