文件名称:Bas64_EnCode
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.12kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
Base64 加密算法(Author 蒋柏良 Jerry Jiang)-*
* DEscr iptION
* Base64 processes input in 24bit chunks by converting each chunk into 4
* bytes of output. It does so by splitting input into four 6bit groups and
* using these as indexes in the following substitution table-
* const char base64_map[] =
* "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
* "abcdefghijklmnopqrstuvwxyz"
* "0123456789+/"
* If an input is not a multiple of 3 bytes, it s padded with zeros. In
* this case the output bytes that consist entirely of the pad data are
* replaced with = .
*
* Example
* An input of 0x00 0x45 0xF2 is equivalent to 00000000 01000101 11110010
* bit sequence, which s then split into 000000 000100 010111 110010
* and these are substituted to produce the following base64 encoding
* A E X y
*
* RETURN VALUE
* b64_length() should return output length for the input of len bytes.
* b64_encode() should encode len bytes from src into dst . dst is
* guaranteed t
* DEscr iptION
* Base64 processes input in 24bit chunks by converting each chunk into 4
* bytes of output. It does so by splitting input into four 6bit groups and
* using these as indexes in the following substitution table-
* const char base64_map[] =
* "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
* "abcdefghijklmnopqrstuvwxyz"
* "0123456789+/"
* If an input is not a multiple of 3 bytes, it s padded with zeros. In
* this case the output bytes that consist entirely of the pad data are
* replaced with = .
*
* Example
* An input of 0x00 0x45 0xF2 is equivalent to 00000000 01000101 11110010
* bit sequence, which s then split into 000000 000100 010111 110010
* and these are substituted to produce the following base64 encoding
* A E X y
*
* RETURN VALUE
* b64_length() should return output length for the input of len bytes.
* b64_encode() should encode len bytes from src into dst . dst is
* guaranteed t
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Bas64_EnCode.c
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.