c# - Troubles read encrypted string which get from Web Request using StreamReader -
so want json string specific url, , json string encrypted become .txt file. want encrypted string , decrypt inside application.
here httpwebrequest code response string:
public string getresponse(url) { string responsestring = ""; httpwebrequest webrequest = httpwebrequest.create(url) httpwebrequest; httpwebresponse response = (httpwebresponse)webrequest.getresponse(); using (streamreader reader = new streamreader(response.getresponsestream())) { responsestring = reader.readtoend(); } return responsestring; }
but response unreadable string (only "o")
i try convert byte array before convert base64 string, still, response string not right.
thanks help.
unfortunately, didnt realize response string includes added character "/0" have remove first, able decrypt string.
thank much.
Comments
Post a Comment