小编vea*_*les的帖子

查找使用的编程语言

什么是找出应用程序编写的编程语言的最简单方法?我想从程序exe文件中知道它的vb或c ++或delphi或.net等.

windows computer-forensics

34
推荐指数
3
解决办法
6万
查看次数

"要解密的数据长度无效." Rijndael解密期间的异常

我得到"要解密的数据长度无效".我试图解密内存流时的异常.我是初学者,无法弄清楚什么是错的.怎么了?

public bool EncryptStream()
    {

        string password = @"myKey123"; // Your Key Here
        UnicodeEncoding UE = new UnicodeEncoding();
        byte[] key = UE.GetBytes(password);

        s_EncryptedStream = new MemoryStream();
        int NoOfBytes;
        byte[] b_Buffer = new byte[8192];

        s_MemoryStream.Seek(0, SeekOrigin.Begin);

        RijndaelManaged RMCrypto = new RijndaelManaged();

        s_CrytpoStream = new CryptoStream(s_EncryptedStream,
            RMCrypto.CreateEncryptor(key, key),
            CryptoStreamMode.Write);

        while (s_MemoryStream.Length < s_MemoryStream.Position)
        {
            NoOfBytes = s_MemoryStream.Read(b_Buffer, 0, 8192);
            s_CrytpoStream.Write(b_Buffer, 0, NoOfBytes);
        }

        s_MemoryStream.Seek(0, SeekOrigin.Begin);

        while (s_EncryptedStream.Position < s_EncryptedStream.Length)
        {
            NoOfBytes = s_EncryptedStream.Read(b_Buffer, 0, 8192);
            s_MemoryStream.Write(b_Buffer, 0, NoOfBytes);

        }
        s_CrytpoStream.Flush();
        s_CrytpoStream.Close();

        return …
Run Code Online (Sandbox Code Playgroud)

exception rijndaelmanaged

4
推荐指数
1
解决办法
9406
查看次数

C#中的即时加密

我正在学习C#.我想编写一个即时加密程序.类似于Truecrypt的东西.它基本上创建了一个加密容器,可以作为虚拟驱动器安装,您可以从中动态解密文件而无需将其写入硬盘驱动器.Truecrypt使用一些过滤器驱动程序[我不知道它们是什么].我需要知道它是否可以在c#中实现.我需要学习任何驱动程序编程吗?可以在不使用驱动程序的情况下完成吗?我还需要学习什么?

c# encryption cryptography

0
推荐指数
1
解决办法
1240
查看次数