The <passwordFile>
element is used to specify a file which has a set of username and password pairs. The format of username and password i开发者_开发知识库n this file is ${username}=${password which has been hashed with SHA1}, with one line per user.
Examples
Suppose the password file is admins.properties
, which is located in /home/locker
. You want to create two users as Administrators:
- one username is
nlohchab
, the password hashed with SHA1 isThmbShxAtJepX80c2JY1FzOEmUk=
- the other one is
james
, the password hashed with SHA1 isTfkgShslgJepX80c2JY1trwEskT=
- SHA is a hashing algorithm, you can't encrypt anything with it.
- your question is not programming-related and ServerFault.com is a better place for it.
精彩评论