static IVGenerator() { arcfour = new ARCFOUREncryption(); long time = SystemUtil.GetTimeBasedSeed(); long mem = SystemUtil.GetFreeMemory(); String s = time + "+" + mem; arcfour.PrepareARCFOURKey(s.GetBytes(iText.IO.Util.EncodingUtil.ISO_8859_1)); }
static IVGenerator() { arcfour = new ARCFOUREncryption(); long time = SystemUtil.GetSystemTimeTicks(); long mem = SystemUtil.GetFreeMemory(); String s = time + "+" + mem; arcfour.PrepareARCFOURKey(s.GetBytes()); }
/// <summary>Creates a new instance of OutputStreamStandardEncryption</summary> public OutputStreamStandardEncryption(Stream @out, byte[] key, int off, int len) : base(@out) { arcfour = new ARCFOUREncryption(); arcfour.PrepareARCFOURKey(key, off, len); }