コード例 #1
0
        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));
        }
コード例 #2
0
        static IVGenerator()
        {
            arcfour = new ARCFOUREncryption();
            long   time = SystemUtil.GetSystemTimeTicks();
            long   mem  = SystemUtil.GetFreeMemory();
            String s    = time + "+" + mem;

            arcfour.PrepareARCFOURKey(s.GetBytes());
        }
コード例 #3
0
 /// <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);
 }