本例是用C实现的对一个数组进行加密,加密到第二个数组,然后解密到另一个数组的完整实现代码。 [cpp] view plain copy print? #include <stdio.h> #include <string.h> #include "openssl/evp.h" #include "o Read More
posted @ 2016-07-26 06:03 findumars Views(1274) Comments(0) Diggs(0)
OPenSSl的加密主要有三个重要的函数。看懂下面的代码就基本上知道该如何使用openssL来加密了。 不过注意,要先将libssl.so.1.0和libcrypto.so.1.0文件复制到执行的文件夹下,linux下,该命令一般为/usr/lib,否则,程序执行时会显示找不到文件。另外,注意先在目 Read More
posted @ 2016-07-26 06:01 findumars Views(11945) Comments(0) Diggs(0)
QT中QProcess调用命令行的痛苦经历 阅读目录 创建压缩包的方法 在QT中调用命令行 在QT中调用C++创建的dll 在QT程序中需要将某些目录和文件压缩为一个rar的压缩包,于是想到了在QT中通过QProcess类调用命令行的rar.exe来达到效果,但是没想到QProcess类用起来很麻烦 Read More
posted @ 2016-07-26 05:59 findumars Views(1936) Comments(0) Diggs(0)
如果要主机通过网络操作嵌入式板子,ttelnet就够了,但是 如果要相互传文件,则必须使用另外一个强大的软件SSH。更完整的步骤和截图请参考http://jingyan.baidu.com/article/9c69d48fb9fd7b13c8024e6b.html Ubuntu本身不自带ssh,需要 Read More
posted @ 2016-07-26 05:54 findumars Views(713) Comments(0) Diggs(0)
接触linux时间不长,总是感觉底气不足,很多东西总是感到迷迷糊糊,其实是因为没找拿到linux C的两把钥匙: makefile和动态库、共享库。linux C中几乎所有的程序都是以库的形式给出,如要要部署,必须知道如何修改makefile。最后生成的组件也将以.a或者.so的形式加载到更大的应用 Read More
posted @ 2016-07-26 05:45 findumars Views(1152) Comments(0) Diggs(0)
如果在Ubuntu12系统中自行安装了一些软件,特别是使用tar.gz文件包安装的软件,通常会放在/usr/local或者/opt,甚至放在/home下,但是如果要调用或执行时,必须加上完整的路径才可以,因为Ubuntu系统默认只执行/bin和/usr/bin下的程序,这非常不方便。一种简单的方法是 Read More
posted @ 2016-07-26 05:45 findumars Views(1744) Comments(0) Diggs(0)
通过继承QSplashScreen类,得到CMySplashScreen类,然后在CMySplashScreen中定义QProgressBar变量,该变量以CMySplashScreen为父类,这样就实现了带进度条的启动界面。 进度条加入后,需要控制进度条的值,为了让进度条看起来更逼真,可以通过生成 Read More
posted @ 2016-07-26 05:32 findumars Views(5378) Comments(1) Diggs(0)
Table of Contents 1.下载相关软件 2.建立共享目录 3.修改该配置文件 4.重启服务 5.测试服务器 6.测试客户端 测试系统:Ubuntu8.04 Table of Contents Table of Contents 1.下载相关软件 2.建立共享目录 3.修改该配置文件 4 Read More
posted @ 2016-07-26 05:22 findumars Views(1857) Comments(0) Diggs(0)
最近用VirtualBox创建虚拟机,复制了一个虚拟硬盘之后,直接添加到列表,发现无法使用....提示为UUID已经被使用.查找了一下解决方法:一般的介绍说操作方法为:在命令行中,打开VirtualBox的文件夹,输入以下命令:VBoxManage internalcommands sethduui Read More
posted @ 2016-07-26 05:19 findumars Views(4892) Comments(0) Diggs(0)
一、G.729协议简介G.729协议是由ITU-T的第15研究小组提出的,并在1996年3月通过的8Kbps的语音编码协议。G.729系列主要有以下几种:G.729—最基本的G.729标准协议,原始版G.729A—精简版的G.729,兼容原始版G.729,对G.729一些算法进行简单处理,相当于降低 Read More
posted @ 2016-07-26 05:15 findumars Views(4728) Comments(1) Diggs(0)