看板Programming
标 题Re: 在linux下c语言引用杂凑函数
发信站政大狂狷年少 (Mon Jul 24 04:15:49 2006)
转信站ptt!ctu-reader!ctu-gate!news.nctu!news.nsysu!news.isu!News.a6Crazy.twb
※ 引述《[email protected]》之铭言:
> 请教各位在linux下,假设要使用openssl的相关杂凑函数如md5、sha1来给c语言使用
> 而可以对文字或档案进行加密,不知道各位是否有尝试过呢?thx
openssl 开放出来的 programming interface 大都是网路函式,
可能派不上用场,
大部分 unix 会有的 libcrypt 倒是可以试试看,
不过印象中是没有 sha1。
另外,你拿 hash function 去加密档案应该是解不回来,
至少 md5 是这样。
--
Name: Tseng, Ling-hua E-mail Address:
[email protected]
School: National Chung Cheng University
Department: Computer Science and Information Engineering
Researching: Porting GCC and Implementing VLIW instruction scheduler in GCC
Homepage:
https://it.muds.net/~uranus
--
╔═══╗ ┼────────────────────────╮
║狂狷 ║ │
* Origin:[ 狂 狷 年 少 ] whshs.cs.nccu.edu.tw ╰─╮
║ 年少║ ┼╮
< IP:140.119.164.16 > ╰─╮
╚╦═╦╝ ╰
* From:218-171-140-81.dynamic.hinet.net
─╨─╨─ KGBBS ─ ◎ 遨翔"BBS"的狂狷不驯;属於年少的轻狂色彩 ◎