3

I have a php script creating an encoded value, for example:

m>^æ–S[J¯vÖ_ÕÚuÍÔ'´äœÈ‘ ®@M©t²#÷[Éå¹UçfU5T°äÙ“©”ˆÇVÝ] [’e™a«Ã°7#dÉJ>

I then need to decode this in a vb.net application The problem is that value above can have any characters. And VB.net can't handle it:

dim strCryptedString As String = 'm>^æ–S[J¯vÖ_ÕÚuÍÔ'´äœÈ‘ ®@M©t²#÷[Éå¹UçfU5T°äÙ“©”ˆÇVÝ] [’e™a«Ã°7#dÉJ>"

So any suggestions how to deal with that value?

4

3 に答える 3

6

Try base64encode and base64decode. That may be all that you need!

于 2009-08-14T01:05:32.693 に答える
1

If you actually need to have it written out in your VB.net source code, you could try base64 encoding it:

dim strCryptedString As String = Base64Decode('bT5ew6bigJNTW0rCr3bDll/DlcOadcONw5QnwrTDpMWTw4jigJggwq5ATcKpdMKyI8O3W8OJw6XCuVXDp2ZVNVTCsMOkw5nigJzCqeKAncuGw4dWw51dIFvigJll4oSiYcKPwqvDg8KwNyNkw4lKPg==');

I'm not sure what the library functions' real names are.

于 2009-08-14T01:06:04.970 に答える
0

文字列を読み取るときは、文字列ではなくバイト配列に読み取ります。次に、デコードを行うときに文字の数値を使用します。

于 2009-08-14T02:12:52.640 に答える