Version information
Start using this module
Add this module to your Puppetfile:
mod 'renttek-password', '1.0.0'
Learn more about managing modules with a PuppetfileDocumentation
PuppetModules - Password
- Overview
- Module Description
- Usage
- MySQL-Passwords
- Unix-Passwords
- MD5
- SHA256
- SHA512
Overview
The password Module provides some basic password-functions (e.g. for mysql or unix)
Setup
If you want to use some of the password functions, you just have to include the password module
require password
Usage
MySQL-Passwords
mysql()
takes only 1 parameter: the password
mysql("string")
Example:
mysql("awesome") = *06D133138EE8ED60013C24248B0CF2E9AF77B8AE
Unix passwords
All unix_*
-Functions can take 1 or 2 parameters.
The first parameter is the Password
and the second the Salt
If no salt is given, the functions will generate a random string as salt.
MD5
unix_md5()
takes only 1 parameter: the password
unix_md5("string")
unix_md5("string", "salt")
Example:
unix_md5("awesome", "foobar") = $1$foobar$AA4Ye.Yk/QC.leSZFYiEW0
SHA256
unix_sha256("string")
unix_sha256("string", "salt")
Example:
unix_sha256("awesome", "foobar") = $5$foobar$OrS3bd1FjnahOg/UuScBUG19Ceu4K4j05YZMLXoQE0B
SHA512
unix_512("string")
unix_sha512("string", "salt")
Example:
unix_sha512("awesome", "foobar") = $6$foobar$4JfKHMVCvHISVZJGuDS2k/.iHRtZxXkbtljXFkkr7VugeF.K6Kdw7m4Fqk4yIqfDQjo2ceA5Npp4dHtZ.0Xnp.
Created with Stackedit (https://stackedit.io)
The MIT License (MIT) Copyright (c) [year] [fullname] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.