开发手记

编程

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: :: :: 管理 ::
 1 
 2 byte[] byteKey = new byte[] { 700x35500x420x310x380x3670 };
 3 DES des = new DESCryptoServiceProvider();
 4 ICryptoTransform f=  des.CreateEncryptor(byteKey, byteKey);
 5 byte[] bytes = Encoding.Default.GetBytes("None;zh-cn;None;8H489467LS631834L;CuteEditor.Editor for asp.net is licensed.;1.6;5;domain.com;192.168.1.101;01/01/2099");
 6 bytes = f.TransformFinalBlock(bytes, 0, bytes.Length);
 7 f.Dispose();
 8 FileStream fs =new FileStream(Server.MapPath("/bin/CuteEditor.lic"), FileMode.Create, FileAccess.Write);
 9 fs.Write(bytes, 0, bytes.Length);
10 fs.Flush();
11 fs.Close();
12 


 

 

昨天在找哪一个在线HTML编辑器更好用,FreeTextBox和FCKEditor还可以,应用很广泛,不过后来在博客园看到CuteEditor,发现功能更强。

下载测试版,在localhost试一下效果,运行时发现它在找license文件,自己写一个key好了,反正它的校验也比较简单。

商用的还是去买它的服务吧,也没多少钱。

 在线demo: http://cutesoft.net/example/general.aspx.

 

 

posted on 2010-03-19 15:12  Calendar  阅读(315)  评论(2编辑  收藏  举报