maskpassword

2021.8.16 • Public • Published

Masked Password

Build a flexible password based on datetime .

example

  1. 'Sunrise in the east.'
  2. short numeric year
  3. numeric month
  4. 'hot summer has come.'

If now is June 2021, the correct password is

'Sunrise in the east.2106hot summer has come.'.

If now is October 2022, the correct password is

'Sunrise in the east.2210hot summer has come.'.

install

npm i maskpassword

npmjs

https://www.npmjs.com/package/maskpassword

github

https://github.com/danwha/MaskPassword

usage

  1. preparations
  • 0-1. require

    const MaskPassword = require('maskpassword')
      or
    import MaskPassword from 'maskpassword'
  • 0-2. class properties

    MaskPassword.regularExpression
    MaskPassword.locale
    MaskPassword.symbols
    MaskPassword.enableLongNames
    MaskPassword.monthNames
    MaskPassword.weekNames
  1. creation
  • 1-1. receive : <user's rule>
  • 1-2. declare & making rule
    let ValidMask = new MaskPassword([rule])
  • 1-3. checking
    ValidMask.isValid()
  • 1-4. encrypt
    let ruleEncrypt = ValidMask.encryption()
  • 1-5. save(aka db)
    let storage = ruleEncrypt
  1. verification
  • 2-1. receive : <user's password>
  • 2-2. load(aka db) :
  • 2-3. decrypt
    let ruleStr2 = ValidMask.decryption(storage, password)

See CHANGED.md for more.

Thank you for your donation.

ETH Wallet : 0x03AA0D76BE8f547244c5A7410674f400142305b0

Package Sidebar

Install

npm i maskpassword

Weekly Downloads

0

Version

2021.8.16

License

MIT

Unpacked Size

39.2 kB

Total Files

16

Last publish

Collaborators

  • danwha