Skip to Main Content
Secure Development for Mobile Apps
book

Secure Development for Mobile Apps

by J. D. Glaser
October 2014
Intermediate to advanced content levelIntermediate to advanced
472 pages
10h 44m
English
Auerbach Publications
Content preview from Secure Development for Mobile Apps
303
seCure ClIent server Form vAlIdAtIon
var input=document.getElementById("input");
Verify input has a minimum of 6 alphanumeric characters
if (input.match(/d/g) = = null)
{ return false; }
else if (input.match(/d/g).length < 6)
{ return false;}
Verify input has a minimum of 8 characters
if (input.length > = 8))
{ return true; }
Verify input contains only numeric characters
if (input.match(numRegEx))
{ return true;}
Verify input contains any characters or digit and is at least
8characters
if (input.match(passwordRegEx))
{ return true;}
Verify input matches phone number format (xxx) xxx-xxxx
if (input.match(phoneRegEx))
{ return true;}
Verify input is in a correct date format (DD/MM/YYYY)
if (dobRegEx.test(input))
{ return true;}
Verify input has correct ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Developing with Web Standards

Developing with Web Standards

John Allsopp
Mobile Cloud Computing

Mobile Cloud Computing

Dijiang Huang, Huijun Wu

Publisher Resources

ISBN: 9781482209037