Function/Keycheck if PASS has a special character

  • Hello,
    I'm trying to use a function and a keycheck to check if the pass contains at least a special character example @!?$#.,
    I'm already using the function Lenght to check if the <PASS> is less than 8 but i don't know how to use the rexeg function (if it's what i need)

    Thanks if you can help me

  • @Suro
    will not be the best Regex but works ^__^

      KEYCHAIN Success OR 
        KEY "<PASSWORD>" MatchesRegex "([^a-zA-Z0-9\s])" 
      KEYCHAIN Failure OR 
        KEY "<PASSWORD>" DoesNotMatchRegex "([^a-zA-Z0-9\s])" 

    but use Data Rule instead of KeyCheck will be better
    Other Option ---> Data ---> Add Rule ---> ( MustMatchRegex ([^a-zA-Z0-9\s]) and MinLenght 8 )

  • But why not just use the Data Tab of the config?

Log in to reply