翱翔天空♂鹏
百度空间 | 百度首页 
 
文章列表
 
2009-11-24 14:00

转载地址:http://www.maycode.com/index.php/linux/34-linuxbase/1468-command.html

OpenSSL有两种运行模式:交互模式和批处理模式。
直接输入openssl回车进入交互模式,输入带命令选项的openssl进入批处理模式。

(1) 配置文件

OpenSSL的默认配置文件位置不是很固定,可以用openssl

 
2009-11-24 13:58

转载地址:http://blog.chinaunix.net/u3/93470/showart_1972640.html

使用 Base64 进行加、解密操作:

 
2009-11-24 13:56

转载地址:http://blog.csdn.net/playmud/archive/2007/03/13/1527438.aspx

openssl库是个好东西!


[root@playmud sec]#cat sec.c
#include <stdio.h>
#include <openssl/evp.h>

int do_crypt(FILE *in, FILE *out, int do_encrypt);
int main(int argc,char **argv)
{
        FILE * fin;
    

 
2009-11-24 13:43

转载地址:http://hi.baidu.com/teng0210/blog/item/a61cfab5fe369b7b8ad4b228.html

来源chinaunix
源码稍有修改

//base64.h

#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<string.h>

extern char *base64_decode(const char*,char **);

extern char *base64_encod

 
2009-11-24 13:41

转载地址:http://hi.baidu.com/teng0210/blog/item/1767818a2968e6779f2fb44b.html
相关原文地址:http://www.faqs.org/rfcs/rfc1321.html

本文介绍linux c使用openssl/md5.h加密

有两种实现方法。

方法一:
#include<stdio.h>
#include<openssl/md5.h>
#include

 
2009-11-24 13:38

转载地址:http://hi.baidu.com/teng0210/blog/item/a4ce7edec3de611b495403bb.html

源文件如下:

//md5.h
#ifndef MD5_H
#define MD5_H

#ifdef __alpha
typedef unsigned int uint32;
#else
typedef unsigned long uint32;
#endif

struct MD5Context {
        uin

 
2009-11-20 17:21

转载地址:http://blog.21ic.com/user1/2949/archives/2007/35599.html

一个定义为volatile的变量是说这变量可能会被意想不到地改变,这样,编译器就不会去假设这个变量的值了。精确地说就是,优化器在用到这个变量时必须每次都小心地重新读取这个变量的值,而不是使用保存在寄存器里的备份。下面是volatile变量的几个例子:
     1). 并行设备的硬件寄存器(如:状态寄存器)
 
 
2009-11-18 17:37

转载请注明出处:http://hi.baidu.com/wangpeng1314/blog/item/5d0c1c825adf75b56d811901.html
作者:wangpeng168

前言:突然要在RedHat 9下解压一个rar包,但是系统下没有解rar包的命令,上网http://www.rarsoft.com/download.htm 找了rarlinux-3.9.0.tar.gz 最新稳定版本

 
2009-11-18 14:30

转载地址:http://www.ibm.com/developerworks/cn/linux/l-proc.html

使用 /proc 文件系统来访问 Linux 内核的内容

这个虚拟文件系统在内核空间和用户空间之间打开了一个通信窗口

级别: 初级
M. Tim Jones (

 
2009-11-18 14:16

转载地址:http://blog.chinaunix.net/u2/76263/showart_1150480.html

/*********create ,read and write a /proc file based on linux******/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/proc_fs.h>
#include <asm/uaccess.h>
#include <linux/init.h>

#define PROCFS_NAME "myprocfile"
#define PROCFS_MAX_SIZE 1024

 
     
 
 
个人档案
 
wangpeng168

上次登录:
11小时前
加为好友
 
   
 
最新照片
 
   
 
最近访客
 
 

elaine922

honggaoyan

沙子的精彩

风见秋

huijies

_电子技术_

ミ白开水ゞ嘢

hong1047
     
 
订阅我的空间
 
已有人次访问本空间
 
订阅RSS  什么是RSS?

您也想拥有这样的空间?请点此申请。
     


©2009 Baidu