Views: 2526|Replies: 6

seeded version [Copy link] 中文

Rank: 8Rank: 8

Post time 2007-4-20 07:25:50 |Display all floors
Before we start, we need to generate an encrypted super-user password. We need to do this because the password is pasted into the config file – so you don’t want it to be sitting there as a plain-text string! We therefore use the slappasswd command:
[root@localhost ~]# slappasswd
New password:
Re-enter new password:
{SSHA}70u1ktNLJSC7tCatm1cAhVX58wnfv4BP
You’ll see that we were prompted for the password, and then for a re-type, and were then given a cryptic-looking string in response. This is basically telling us that slappasswd chose to use a seeded version of the SHA-1 hashing function and that the result was the string 70u1ktNLJSC7tCatm1cAhVX58wnfv4BP.

Use magic tools Report

Rank: 8Rank: 8

Post time 2007-4-20 09:54:50 |Display all floors
提供种子值(seed)的SHA-1散列函数?

Use magic tools Report

Rank: 4

Post time 2007-4-20 10:05:07 |Display all floors
:)
i think,here the word  "seeded" has the meaning of "basic".

Use magic tools Report

Rank: 8Rank: 8

Post time 2007-4-20 10:07:42 |Display all floors
有请熟悉SHA-1 hashing function机制的朋友指点。

Use magic tools Report

Rank: 4

Post time 2007-4-20 10:31:37 |Display all floors
seed (种子) as in random seed (乱数种子 ) for random number or string generation

[ Last edited by putneyswope at 2007-4-20 10:43 AM ]

Use magic tools Report

Rank: 8Rank: 8

Post time 2007-4-20 11:00:24 |Display all floors
具体到本文的 seeded version of the SHA-1 hashing function ,又该怎么说呢?

Use magic tools Report

Rank: 8Rank: 8

Post time 2007-4-20 12:01:37 |Display all floors
查得:
Software random number generators generally start with a single seed from which all other numbers are generated. This can be used as a pre-compression mechanism: if you need to generate lots of random data, then store it, you can instead simply store the seed for the pseudo-random number generator. For example, the game "Diablo" generates a random level every time. They could base this on a seed, and simply store the seed and regenerate the level accordingly. They don't -- which leads to lots of disk space being used up.

Use magic tools Report

You can't reply post until you log in Log in | register

BACK TO THE TOP
Contact us:Tel: (86)010-84883548, Email: blog@chinadaily.com.cn
Blog announcement:| We reserve the right, and you authorize us, to use content, including words, photos and videos, which you provide to our blog
platform, for non-profit purposes on China Daily media, comprising newspaper, website, iPad and other social media accounts.