I am trying to create a password that meets the following criteria:
- Minimum length: 7
- Maximum length: 15
- At least one uppercase letter
- At least one lowercase letter
- Special characters: ~ ! @ # $ % ^ * ( ) _ + ?
I have been using the casual library for generating passwords, but I'm having trouble including special characters. Can anyone provide assistance with this problem?
var casual = require('casual');
var password = casual.password.substring(10,{
length: 10,
uppercase: true,
lowercase: true,
number: true,
symbols: true,
strict: true
});