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
205
seCure sessIon storAge
//Better and Faster than using shared/tmp files on shared server
const CLEAR = 0;
//high level of encryption protection for temporary data, pretty fast
const ENCRYPT_IV_PER_TABLE = 1;
// highest level of encryption protection available per individual
record
const ENCRYPT_IV_PER_RECORD = 2;
//this value is used in read/write switch statement
// change level to CLEAR, ENCRYPT_IV_PER_TABLE, ENCRYPT_IV_PER_
RECORD
const ENCRYPT_LEVEL = ENCRYPT_IV_PER_RECORD;
public function _construct($host, $db, $user, $pass)
{
try{
$this->db = new PDO("mysql:host = {$host};dbname = { $db};charset
= utf8",
$user,
$pass);
$this->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$t his->db->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, ...
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