|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Negative numbers in encryption keyHello
I've written a simple .net 1.1 class that uses the cryptography classes to encrypt/decrypt using DES. My client just sent me their key which contains negative numbers for example - byte[] keyBytes = {103, -39, -110, 62, -100, 37, -29, 59}; I know they use Java at their shop which I believe allows this. I'm not sure how to handle this in my app since I can't put negative numbers into a byte array. Can anyone help or direct me to some sample code to handle this ? Thanks!!! Corleen wrote:
> key which contains negative numbers for example - byte[] keyBytes = int foo = -1;> {103, -39, -110, 62, -100, 37, -29, 59}; I know they use Java at > their shop which I believe allows this. I'm not sure how to handle > this in my app since I can't put negative numbers into a byte array. byte bar = (byte)foo; Console.WriteLine(bar); // prints 255 -- Chris Priede (pri***@panix.com)
StreamWriter causes SecurityException when attempting to write to network drive..need help
Sandboxing AppDomain can you put a strong name assembly in a role? Can't determine if a file exists 'System.Security.SecurityException' when running .exe file from ot windows forms UserControl compiled with beta 2 doesn't work with IE Strong Name broken? VS2005 - X509 key not loaded correctly for FTPS server authentication ? CryptGenKey & CryptImportKey slow in certain situations Does preJIT protect the assemblies? |
|||||||||||||||||||||||