예제 #1
0
        public static byte[] cryptoMethod(Stream stream_0, string string_0)
        {
            MemoryStream memoryStream = new MemoryStream();

            KeyGenerator.cryptoMethod(stream_0, memoryStream, string_0);
            return(memoryStream.ToArray());
        }
예제 #2
0
        private static void cryptoMethod(Stream stream_0, Stream stream_1, string string_0)
        {
            PasswordDeriveBytes passwordDeriveBytes = new PasswordDeriveBytes(string_0, KeyGenerator.pwByteArray);

            KeyGenerator.cryptoMethod(stream_0, stream_1, passwordDeriveBytes.GetBytes(32), passwordDeriveBytes.GetBytes(16));
        }