shell 运行原理 & unix 缺陷

Posted by 夏泽民

通常所说的“Unix哲学”包括以下三条原则[Mcllroy]: 1、一个程序只做一件事情,并且把它做好。 2、程序之间能够协同工作。 3、程序处理文本流,因为它是一个通用的接口。



Linux下的shell工作原理

Posted by 夏泽民

Linux系统提供给用户的最重要的系统程序是Shell命令语言解释程序。它不属于内核部分,而是在核心之外,以用户态方式运行。其基本功能是解释并执行用户打入的各种命令,实现用户与Linux核心的接口。系统初启后,核心为每个终端用户建立一个进程去执行Shell解释程序。它的执行过程基本上按如下步骤: (1)读取用户由键盘输入的命令行。



base64

Posted by 夏泽民

MIME主要使用两种编码转换方式—-Quoted-printable和Base64—-将8位的非英语字符转化为7位的ASCII字符。



aes 的工作模式(ECB、CBC、CFB、OFB)

Posted by 夏泽民

http://www.php.net/manual/zh/book.mcrypt.php 高级加密标准(Advanced Encryption Standard: AES)是美国国家标准与技术研究院(NIST)在2001年建立了电子数据的加密规范。它是一种分组加密标准,每个加密块大小为128位,允许的密钥长度为128、192和256位。



json

Posted by 夏泽民

“encoding/json”的源码: func Unmarshal(data []byte, v interface{}) error { // Check for well-formedness. // Avoids filling out half a data structure // before discovering a JSON syntax error. var d decodeState err := checkValid(data, &d.scan) if err != nil { return err }



Search

Popular posts

Anything in here will be replaced on browsers that support the canvas element

Recent posts

This blog is maintained by 夏泽民

Get in touch with me at 465474307@qq.com

Subscribe to our mailing list

* indicates required