`
qvb3d
  • 浏览: 171055 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
openssl passwd -1  >mypasswd.txt   Password: Verifying - Password:   vi a.txt   ####add root   root:$1$F****************************   :wq     chpasswd --encrypted <mypasswd.txt     ####Your password already ok! windows 的工具可以到   下载  

openssl 使用

OpenSSL  OpenSSL 包含一个命令行工具用来完成 OpenSSL 库中的所有功能,更好的是,它可能已经安装到你的系统中了。 OpenSSL 是一个强大的安全套接字层密码库,Apache 使用它加密 HTTPS,OpenSSH 使用它加密 SSH,但是,你不应该只将其作 为一个库来使用,它还是一个多用途的、跨平台的密码工具。 这里简单说一下 OpenSSL 的背景,在 OpenSSL 之前,叫做 ssleay,它是一个由 EricA.Young 编写的 SSL 工具,它不断改 进最终变成了 OpenSSL,与 NCSA 的 HTTPd 变成 Apache 服务器的过程非常 ...

显示文件内容

  #include <stdio.h> #include <fcntl.h> #include <malloc.h> #include <string.h> #include <unistd.h> #include <stdlib.h> int main(int argc,char *argv[]) { int fd,i=1,a,c,t; int tsize; char *buf; buf=malloc(sizeof(char)*256); if(argv[2]==NULL) c=1; ...
网页ie内嵌字体与css3样式   内嵌字体,那么什么是内嵌字体呢。多年以来,我们在编写网页的时候,使用的字体只能是屈指可数的几种标准字体,因为多数浏览器只能够调用用户电脑上已经有的字体,这样非常影响美观,也局 ...
#include <stdio.h> typedef struct { int a; int b; unsigned int (*init_mptr)(unsigned int pt ...
#include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/fs.h> #include <linux/mm.h> #include <linux/cdev.h> #include <linux/errno.h> #include <linux/types.h> #include <linux/interrupt.h> #include <l ...
这里讲解我们新添加一组数据实现开机LOGO的方法:   第一步:在kernel/drivers/video/logo的Kconfig中添加配置文件:#qvb added for  bootup logo.config LOGO_QVBLINUX_CLUT224 bool "QVB 224-color Linux logo" default y#end added.   第二步:make menuconfig这时,在Bootup logo一栏就会多一个QVB 224-color Linux logo配置选项供选择。取消所有其它LOGO选项,选中QVB 224-color ...
创建一个linux 静态库 1.我们先写一个简单的函数   maxh.h   int max(int a,int b);    maxh.c   int max(int a,int b) { return (a>b)?a:b; }     再写一个调用的   testmain.c   #include <stdio.h> #include "maxh.h" int main(int argc,char *argv[]) { int a,b; printf("\nPlease input ...
  java 调用gcc so      mkdir -pv com/mpjni cd com/mpjni   vi mpjni.java package com.mpjni;                                                                                   public class mpjni                                                                                   {                 ...
#include <stdio.h> int main(int argc,char *argv[]) { int a,i; int b,c,d,e; printf("Please input int for a :\n"); scanf("%d",&a); c=a&0x000000ff; b=a&0x0000ff00; d=a&0x00ff0000; e=a&0xff000000; b=b>> ...
  这几天一直被人问,你做过线程和进程吗? 以下写个例子   在进程中的线程通信     #include <stdio.h> #include <stdlib.h> #include <pthread.h> void task1(); void task2(); int G_INT=0; pthread_mutex_t mlock; pthread_attr_t at1; pthread_attr_t at2; int ret; int main(int argc,char *argv[]) { ret=pt ...
  昨天遇到一个兄台,说要qt写界面 有时界面会变动很大 我的建议是用 qtwebkit 具体是什么样的呢,也不知道那个兄台能不能看到这博客 把以前项目中的内容,简化成例子   为这个项目做的模拟器 发上来,朋友们看看   mkdir qwebkit   cd qwebkit   QtDesigner   建立form.ui 到qwebkit  控件名   webView     控件名 lineEdit 拖动调整大小     保存   Qt Creator 建立qwebkit.qrc   也可以 vi ...

C++双向链表

#ifndef LINKLIST_H #define LINKLIST_H using namespace std; template <class elem_type> class LINKLIST { private: struct NODE { NODE *pre; elem_type element; NODE *next; NODE(const elem_type &element,NODE *pre=NULL,NODE *next=NULL); NODE(); ~N ...
OSX 编译chillispot-1.1.0 转载请注明 本文为原创 chillispot-1.1.0-osx.tar.gz是我改后的 chillispot-1.1.0.tar.gz 是网站源码   最近发现OSX的gcc有很函数被阉掉了 比如 clearenv   最近有wifi项目 需要这个chillispot   本想编译一个在机器上 ...
刚刚有个朋友来问 说脚本中的是什么意思   ./setboard if [ "$?" != "0" ]; then    echo "Error run Environment"   exit 1 fi   系统学习真的有必要,呵呵   我们的系统都有一个   Expands  to  the status of the most recently executed foreground pipeline.   扩展到最后执行的前台状态管道   也说就是   我C语言main有一个return ...
Global site tag (gtag.js) - Google Analytics