Search Keyword:

This function returns a more secure password hash by using SHA1 encryption algorithm with the combination of using a salt,returning a salted hash.Salt is a random bit of data,consisting of upper and lowercase letters with the combination of numbers and special characters to be included in the string you want to hash so we can avoid the possibility of dictionary hacks.If you are using PHP 5.12 or above,you might want to look at SHA2 (sha256,sha384,sha512) encryption algorithm.

The function:

function password_hash($username,$password)
{
$salt = “123456789ThisIStheSalt9876543210″;
return sha1($username . $password . $salt );
}

In this function, I had used a 32-character,combination of upper and lowercase letters and numbers salt.You can change it to whatever random string of data you have come up with.You can also use special characters too!(!@#$,etc.).I have included the username in the parameter of the function so the string to be hashed will be more longer (username + password + salt).

Usage:

if($_POST['register_button'])
{
/* Clean first your post variables against SQL injection and cross site scripting attacks, cleaning function is not included in this tutorial */

// hash the password using the inputed username and the password
$hashed_password = password_hash($username , $password);

//proceed to inserting details in your database
}

For example, when a user register on your page, his username is “myusername” and password is “mypassword”,we will take his username and password and hash it using the function. The outcome of the hash will be “d6bbfc3af54c4736839fd339715b6698fb7d23e2″ .Isn’t that more secure than storing the plain-text password in your database?Yes it is.Then you’re ready to store the generated hash in the password field of your database.

if($_POST['login_button'])
{
/* Clean first your post variables against SQL injection and cross site scripting attacks, cleaning function is not included in this tutorial */

// hash the password using the inputed username and the password
$hashed_password = password_hash($username , $password);

//proceed to check if username and password matches in your database

}

When a user logs-in,we will take his username and password and hash it again using the same function.Then we will proceed to validate the username and the hashed password with the details stored in the database.

This .htaccess rule is to remove the index.php file in CodeIgniter URLS.There is an example on how to remove this on the CodeIgniter User Guide but unfortunately it somehow doesn’t work.Anyway, here’s how to do it:

Put this code on your .htaccess file,changing “directory_on_where_is_your_CI” in which your CodeIgniter application resides.
If your CI application is in the root, just remove “directory_on_where_is_your_CI/” .

RewriteEngine On
RewriteBase /directory_on_where_is_your_CI/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /directory_on_where_is_your_CI/index.php/$1 [L]

Put the .htaccess file on the root if your CodeIgniter application,where the system/ folder resides.To test if it is working try removing the index.php file in the URL.

example.com/index.php/news/article/my_article

can be

example.com/news/article/my_article

but produces the same output.

27Oct

How to hack PSP Brite 3000 tutorial

Posted by admin as Others


This tutorial explains on how to hack your PSP 3000 (Brite) in a step by step procedure.This tutorial is based on my personal experience and I’m sure it will work for you as well.Let’s Go!

UPDATE: PSP 3000s with versions above 5.03 can now be hacked! Try to check out these links for more information: http://forums.dashhacks.com/f133/tutorial-installing-6-20-pro-b-4-permanent-t284028/ and http://forums.dashhacks.com/f133/tutorial-installing-6-35-pro-b2-t272834/
(Disclaimer: I am not affiliated with the above links, don’t know if it works or not and haven’t tried their tutorial.)

Step 1: Check if your firmware version is 5.03

Check your system software version is 5.03 by navigating into
Settings > System Settings > System information.

If your software version is 5.03 then skip the next step,else proceed Step 3.

Step 2: Update your firmware version to 5.03

Download the firmware version by clicking here.
Follow the steps from playstation.com in updating your firmware version by clicking here.

Note:If you update your firmware version above 5.03,it will make your PSP not hackable.And it will cannot be reverted back to older firmware version.

Step 3: Download and install chickHEN R2

Download chickHEN R2(requires firmware version 5.03) by clicking here.
Copy whole ChickHEN folder (which contains 4 gif files ChickHENa-d and slim.tiff) to your PICTURE folder.
Then copy the h.bin file into your root directory.Root directory is where you will see the PICTURE,MUSIC and VIDEO folders.
Restore your PSP’s Default settings in SYstem Settings > Restore Default Settings.
In your PSP, go to Photo > Memory Stick.
Don’t do anything.Allow the photos to be loaded and it should show some colors flash and it will restart itself.
If it does not restart and just turned off, go into PHOTO > Memory Stick again.
After it has restarted,check your sytem version.If it reads “5.03 ChickHEN R2″,then ChickHEN is successfully installed.

Step 4: Download and install Custom Firmware 5.03 GEN-C

Download Custom Firmware 5.03 GEN-C here.
Extract the 5.03 GEN-C files to your computer.
Copy the GEN-C folder (in the extracted file PSP > GAME > GEN-C) in your PSP (PSP > GAME).
Disconnect the PSP from the Computer.
Run the 5.03 GEN-C Updater in Game > Memory Stick
Follow the process in updating,last command will be to press X.PSP will reboot.
Check your System Information ,system software must be “5.03 GEN-C (Full)”.

–After these steps,do not let your PSP completely lost its battery power or perform complete shutdown.Standby Power down is ok.Complete shutdown means you push slide the on/off button longer than just a little slide to turn it off.If battery has been drained or your PSP performs complete shutdown,then you will perfom these steps again(except for step 1 and 2).If you will load the 5.03 GEN-C for another time (for example, your PSP battery has drained or has forced shutdown),hold the ā€œLā€ button when running again the updater.

How to put downloaded games in your PSP

Create a folder named “ISO” in your PSP root directory.Root directory is where you will see the PICTURE, MUSIC and VIDEO folders.
Put your .iso or .cso in that folder.You can download PSP games from different websites.A quick search in Google will do you good.
In your PSP, go to GAME > Memory Stick.
Choose your game and ride on.


DISCLAIMER: I had made this simple tutorial based on my personal experience.If you had installed the wrong custom firmware on models that are still not hackable,it will result in a brick.This tutorial is only a guide and neither I,nor anyone else in the credits,will be responsible for your actions.

Credits: dl.qj.net and exophase.com for the download links,Davee for the ChickHEN, Xenogears and Becus25 for CFWENabler 3.60,ultimakillz and brucetan for their post and and quickguides.

Sponsored Links



Recent Comments

  • Kim: Question…How do you query posts that are tagged with something? I guess I’ll need a join statement,...
  • meemeo: thank you
  • Kevin McCutceon: Hello, I like this entry, I really need it to work and I see how it is going to work. My problem is...
  • secret design art: Awesome tool. THX for it.
  • Manu: This is just what i needed and IT WORKS! Thank you very much… ————...