Difference between revisions of "Security isValidPassword"

From Catglobe Wiki
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[Category:General_Functions]]
+
{{HelpFiles}}

+
 
 +
==== Security_isValidPassword ====
 +
 
 +
Check if a string could be used as a password
 +
 
 +
'''Syntax'''
 +
 
 +
Security_isValidPassword(''password'')
 +
 
 +
'''Arguments'''
  
====Security_isValidPassword====
+
*''password'': is a ''string ''expression, it must follow the common format for password
  
Check if a string could be used as a password
+
'''Return value'''
  
'''Syntax'''
+
bool
  
Security_isValidPassword(''password'')
+
'''Example'''  
  
'''Arguments'''
+
''bool a = Security_isValidPassword("123");''
  
* ''password'': is a ''string ''expression, it must follow the common format for password
+
''if (a) print("Valid password");''
  
'''Return value'''
+
''else print("Invalid password");''
  
bool
+
''//Result: Invalid password''
  
'''Example'''
+
''//--------------------''
  
 
''bool b = Security_isValidPassword("abcd125789");''
 
''bool b = Security_isValidPassword("abcd125789");''
  
'''Availability'''
+
''if (b) print("Valid password");''
  
Version 5.6
+
''else print("Invalid password");''
__NOTOC__
+
 
<!-- imported from file: 6284.htm-->
+
''//Result: Valid password''
 +
 +
'''Availability'''
 +
 
 +
Version 5.6 __NOTOC__ <!-- imported from file: 6284.htm-->  
 +
 
 +
[[Category:General_Functions]]

Latest revision as of 05:20, 22 December 2011



Security_isValidPassword

Check if a string could be used as a password

Syntax

Security_isValidPassword(password)

Arguments

  • password: is a string expression, it must follow the common format for password

Return value

bool

Example

bool a = Security_isValidPassword("123");

if (a) print("Valid password");

else print("Invalid password");

//Result: Invalid password

//--------------------

bool b = Security_isValidPassword("abcd125789");

if (b) print("Valid password");

else print("Invalid password");

//Result: Valid password

Availability

Version 5.6