Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-14653

Enable ability to set maximum number for a character type in crypto.js

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: 6.0.0.5, 6.5.0.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      In /path/to/openidm/bin/defaults/script/crypto.js, the generateRandomString function 'produces a random string conforming to a set of minimum complexity requirements and length'

       

               require('crypto').generateRandomString([
                   { "rule": "UPPERCASE", "minimum": 1 },
                   { "rule": "LOWERCASE", "minimum": 1 },
                   { "rule": "INTEGERS", "minimum": 1 },
                   { "rule": "SPECIAL", "minimum": 1 }
               ], 8) // returns a value like "R92kHZ;1"
      

       

      Customer would like the ability to set 'maximum' complexity requirements, so that it would be possible to restrict the number of characters generated of a certain type - for example, to only have 1 SPECIAL character.

        Attachments

          Activity

            People

            Assignee:
            brmiller Brendan Miller
            Reporter:
            paul.tang Paul Tang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: