加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

crypt()在C中做了什么?

发布时间:2020-12-16 10:54:04 所属栏目:百科 来源:网络整理
导读:crypt(text,"k7") 我查了一下,显然’k7’是盐,但我不知道这意味着什么类型的输出将来自那个,谁都知道? 解决方法 从 crypt Man page. Description crypt() is the password encryption function. It is based on the Data Encryption Standard algorithm wit
crypt(text,"k7")

我查了一下,显然’k7’是盐,但我不知道这意味着什么类型的输出将来自那个,谁都知道?

解决方法

从 crypt Man page.

Description

crypt() is the password encryption
function. It is based on the Data
Encryption Standard algorithm with
variations intended (among other
things) to discourage use of hardware
implementations of a key search.

key is a user’s typed password.

salt is a two-character string chosen from the set [a-zA-Z0-9./]. This string is used to perturb the algorithm in one of 4096 different ways.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读