cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

String Functions Used for Password creation

Solved!
Go to solution

String Functions Used for Password creation

I want to create a string used to input a password. In that I want to put some conditions like follows:

1. String must not me greater than 8 characters.

2. It must contain atleast one Upper case and one Lower case character.

3. It must contain atleast one symbol.

For this i didn't find any direct function so I have completed the program halfway.

Please, see the attahed VI and give some solution if anyone have.

0 Kudos
Message 1 of 11
(322 Views)

Re: String Functions Used for Password creation

You only attached the project file, no VIs.

/Y

G# - Award winning reference based OOP for LV, for free! ADDQ VIPM
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 11
(308 Views)
Highlighted
Solution
Accepted by topic author PoojaMadane
02-12-2018 08:42 PM

Re: String Functions Used for Password creation

Match Pattern will be your friend here.


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

The discussions from the Advanced User Track is not over. Join in the conversation: 2016 Advanced Users Track
Message 3 of 11
(302 Views)

Re: String Functions Used for Password creation

Hi Pooja,

 

1. StringLength function…

2. LexicalClass function

3. first define "symbol", then use LexicalClass or some kind of LUT (LookUpTable)

Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2017 on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 4 of 11
(298 Views)

Re: String Functions Used for Password creation

Try this.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 5 of 11
(268 Views)

Re: String Functions Used for Password creation

Sorry. Here, is the project file.

0 Kudos
Message 6 of 11
(245 Views)

Re: String Functions Used for Password creation

Its a really good solution. And you made it too simple.

Thank you.

0 Kudos
Message 7 of 11
(241 Views)

Re: String Functions Used for Password creation


crossrulz wrote:

Match Pattern will be your friend here.

This might just be wanting to optimize things as much as possible, but instead of using pattern matching for the upper and lower case comparison could you not just compare the inputs and outputs after passing the string through "To Upper Case".


Test.png

 

 

Message 8 of 11
(235 Views)

Re: String Functions Used for Password creation


@This might just be wanting to optimize things as much as possible, but instead of using pattern matching for the upper and lower case comparison could you not just compare the inputs and outputs after passing the string through "To Upper Case".

Test.png


No, it is not enough. Strings with only lower case letters will pass.

0 Kudos
Message 9 of 11
(220 Views)

Re: String Functions Used for Password creation

With this solution I want to add some extra points for my project.

1. I want to display a pop-up window if any of the match pattern becomes false.

For this, I have used one button dialogue and showing "string limit exceeded" pop-up.

But, for other conditions like I want to show "There must be atleast one capital letter." for second match pattern function.

Its is malfuntioning in my VI.

Please, give the solution if any.

0 Kudos
Message 10 of 11
(208 Views)