public static Decrypt0 ( string cipherText, string key ) : string | ||
cipherText | string | |
key | string | |
Résultat | string |
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); } }
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); } }
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); } }
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); } }
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); } }