【发布时间】:2011-12-25 06:37:16
【问题描述】:
我的 iPhone 上的 OpenSSL 库运行良好,并且可以创建哈希等...
openssl passwd -crypt -salt xxxxxxxxxxxx 密码
我正在库中寻找“passwd”函数,但似乎找不到...
谢谢!
【问题讨论】:
-
好吧,我想通了。我没有意识到有一个“crypt()”函数可以满足我的需求。对于其他人,只需使用: const char *passwd = crypt(password, salt);