password

UNKNOWN
Julian Nuß

Julian Nuß

renttek

10,493 downloads

10,493 latest version

3.4 quality score

Version information

  • 1.0.0 (latest)
released Jul 3rd 2019

Start using this module

Documentation

renttek/password — version 1.0.0 Jul 3rd 2019

PuppetModules - Password

  1. Overview
  2. Module Description
  3. Usage
    1. MySQL-Passwords
    2. Unix-Passwords
      1. MD5
      2. SHA256
      3. 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)