Beispiel #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());
        }
Beispiel #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));
        }