commit | bdb298f744cc71421f0c2e6f50254f933c6bb3cc | [log] [tgz] |
---|---|---|
author | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | Wed Sep 06 11:39:22 2017 +0530 |
committer | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | Wed Sep 13 12:54:39 2017 +0530 |
tree | 1505ad26fc8078c7fa6e0bd427d4e6f2ef9941c6 | |
parent | 54309f17f35169e9f4b617b98fec43f6ac6507e1 [diff] |
Extract crypto algorithm field and add utility functions Password field of a user in /etc/shadow contains 3 parts: [Crypt algorithm, Salt, encrypted password] Example: A value of "1" in crypt algorithm maps to MD5 Need to use the same crypt algorithm that is already used before when the new password is to be updated. Change-Id: Ib7d8e0ad6f3bcce30f5c2be89b4e033230c07bf4 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>