cancel
Showing results for 
Search instead for 
Did you mean: 

Generate and Set Complex Password

jgregor4
Level 6
I have an application that has a very strict set of rules for a new password. I am very much at a loss as to how to build to accommodate these rules and any help will be greatly appreciated.   Rules: Minimum Length = 8 Maximum Length = 10 No Special Characters Upper/Lower Case required Cannot have 2 consecutive letters Cannot have 2 numbers next to each other (even if they are different numbers) Cannot have the same letter in the same position as the last password Cannot have any number in the same position as any number in the last password   I have been thinking that if the current password can be checked to see what the first character is and then alternate between a rule such as (0 represents Number, X represents a letter): 0X0X0X0X0X X0X0X0X0X0 0X0X0X0X0X X0X0X0X0X0   This way there would never be a letter or number next to each other and a letter or number would not be in the same position as the last password.   Any ideas?
3 REPLIES 3

Denis__Dennehy
Level 15
The internal credentials object has an action to generate a password that includes loads of inputs to stipulate password length/numbers/text/special characters/etc - are you saying that does not work for your scenario?

jgregor4
Level 6
When I have tried this and used a text data item to see the password Blue Prism has ""set"" it will sometime have the same letter in the same place as last time or with 2 numbers next to each other. As an example Eq0nA5x9 kV16gCA5 From these 2 that were generated one after the other, the second one has 2 numbers next to each other, and a number in the same place as last time    

John__Carter
Staff
Staff
It sounds like you'll need to devise your own logic. But rather than reinvent the wheel, perhaps you could use a clever Regex to 'correct' the random password that BP generates.