public void PrepareARCFOURKey(byte[] key)
{
PrepareARCFOURKey(key, 0, key.Length);
}
ARCFOUREncryption::PrepareARCFOURKey ( byte key, int off, int len ) : void |
static IVGenerator(){ rc4 = new ARCFOUREncryption(); byte[] longBytes = new byte[8]; long val = DateTime.Now.Ticks; for (int i = 0; i != 8; i++) { longBytes[i] = (byte)val; val = (long)((ulong)val >> 8); } rc4.PrepareARCFOURKey(longBytes); }