I\'ve a big problem. I using this C# function to encode my message:
byte[] buffer = Encoding.ASCII.GetBytes(file_or_text);
SHA1CryptoServiceProvider cryptoTr
The change to use ISO-8859-1 on the C# side is easy:
byte[] buffer = Encoding.GetEncoding(28591).GetBytes(file_or_text);
However, both this and ASCII will lose data if your text contains Unicode characters above U+00FF.
Ideally if your source data is genuinely text, you should use an encoding which will cope with anything (e.g. UTF-8) and if your source data is actually binary, you shouldn't be going through text encoding at all.