空军

skyiv studio

导航

2005年9月19日 #

一个Delphi写的DES算法, 翻译成C#

摘要: 其实.NET Framework已经提供实现DES算法的类: System.Security.Cryptography.DESCryptoServiceProvider。之所以要把一个Delphi写的DES算法翻译成C#,是因为网友espnstar想用Delphi加密,C#解密。[原文] 阅读全文

posted @ 2005-09-19 21:54 空军 阅读(1239) 评论(1) 推荐(1) 编辑

一个Delphi写的DES算法, 翻译成C#

摘要: 其实.NET Framework已经提供实现DES算法的类: System.Security.Cryptography.DESCryptoServiceProvider。之所以要把一个Delphi写的DES算法翻译成C#,是因为网友espnstar想用Delphi加密,C#解密,详见CSDN贴子: http://topic.csdn.net/t/20050726/18/4169690.html。 阅读全文

posted @ 2005-09-19 21:11 空军 阅读(4319) 评论(12) 推荐(1) 编辑

C#中更改1维数组的大小

摘要: 模拟Visual Basic的ReDim语句,C#实现,仅支持1维数组。 阅读全文

posted @ 2005-09-19 17:10 空军 阅读(2920) 评论(8) 推荐(0) 编辑

C#使用API枚举并设置显示模式

摘要: 用C#程序设置屏幕分辨率及刷新频率,程序中必须检查,不允许设置到显示器不支持的模式上,以免有可能损坏显示器(我所看到的前人的程序都未作检查)。解决方案: 用API枚举出当前显示器所支持的分辨率及刷新频率,填入列表框,然后再从中选择进行设置。 阅读全文

posted @ 2005-09-19 12:32 空军 阅读(2070) 评论(0) 推荐(0) 编辑

打印自己的程序C#版

摘要: For years, we gave the same programming test to every developer. It was a straightforward test that required no setup or external knowledge from manuals. The candidates were asked to write a program that could print its source to the screen exactly, without performing any file input. 阅读全文

posted @ 2005-09-19 09:45 空军 阅读(642) 评论(1) 推荐(0) 编辑