Archive

Posts Tagged ‘Security’

Login & Logout tutorial

Create a file for Login and Logout (PHP + MySQL) using with a SESSION variable. This file contains Login form, Login authorize program and Logout program. All in one but Short and Easily.

This tutorial require 2 PHP files and 1 table of mySQL database.

  1. index.php this file is the Login and Logout file.
  2. main.php this file is the target when login is O.K.
  3. Database “tutorial” and table “admin” with 3 fields: id(auto_increment), username(varchar, 50), password(varchar, 32).
    * The “password” field is design for md5() password for more sucurity.Then put a record into this table. In this tutorial, put a record with name “admin” and password “81dc9bdb52d04dc20036dbd8313ed055“. This password was encrypted by md5() function from the real password “1234“.

    * When you test this script you must to put the real password (1234) in “password” box.

index.php

The mainly file for do 3 things.

  • Login form. Including 2 fields “username” and “password” and submit button “Login”.
  • Login authorize program. Do authorize check after you submit form, if passed in username and password, this page will re-direct to main.php. If not, show the invalid user or password message.
  • Logout. Clear the login session when come back or refresh this page.

Read more…

Vista has speech recognition hole

Microsoft has admitted that speech recognition features in Vista could be hijacked so that a PC tells itself to delete files or folders.

Vista can respond to vocal commands and concern has been raised about malicious audio on websites or sent via e-mail.

In one scenario outlined by users an MP3 file of voice instructions was used to tell the PC to delete documents.

Microsoft said the exploit was “technically possible” but there was no need to worry.

Read more…