How to convert UnicodeEncoding output to plain string?

Hi, I am now converting delphi code to .net they have this encryption in their database, I have decrypted, but the output problem is in the byte array.

Here is what I have done so far

Private Function EnDeCrypt(ByVal Value As String) As String

    Dim transformed = Encoding.Unicode.GetBytes(Value).Select( _
        Function(item) Not item)
    Return Encoding.Unicode.GetString(transformed.ToArray())

End Function

Result: º "³³¶½ = edpl i b (non-printable characters)

my problem is how to convert the output to a string
Suggestions and help with thanks

+3
source share
1 answer

The short answer is that if your encoding algorithm is really a bitwise negation of a UTF-16 string, you cannot print the output. The algorithm prints an unprintable result.

base64 , , .

, , .

+1

All Articles