Nov 21, 2009
Pages: 1, 2

[PHP + MySQL] Encrypting Data - To protect the password of your DB, for example.

free web hosting

Read Latest Entries..: (Post #13) by pyost on Feb 24 2009, 07:53 AM.
QUOTE (iGuest-sharat khajuria @ Sep 4 2008, 07:45 AM) How do we can fetch the encrypted password into decrypted form in php,mysql ?[PHP + MySQL] Encrypting DataI have inserted a password in mysql database in encrypted form using md5 but if the user forgets his password then how we can fetch the encrypted password into decrypted form ( original password)-question by sharat khajuriaThis cannot be done. MD5 is a one-way encryption algorithm, which means you can only encrypt it, not de...
read more.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion & Free Web Hosting > Computers & Tech > Programming > Scripting > PHP

[PHP + MySQL] Encrypting Data - To protect the password of your DB, for example.

Alexandre Cisneiros
Hi! This is my 2nd code of PHP + MySQL.
This code is VERY simple: it encript the data in the MySQL DB. Here we go!
------------------------------------------------------------------------
CODE
<?php
$password = "abc";
$new_password = md5($password);
echo $new_password;
?>

The password "abc" was codfied using md5()
This will be: 900150983cd24fb0d6963f7d28e17f72
CODE
<?php
$normal_pass = "abc";
$encripted_pass = "900150983cd24fb0d6963f7d28e17f72";
if(md5($normal_pass) == $encripted_pass)
  echo "Login Sucessful!";
else
  echo "Incorrect password.";
?>

This check if the password in the var is the "same" as the password in the DB

Comment/Reply (w/o sign-up)

yordan
Very nice.
Very useful, because doing that way you store in the database only enkripted passwords. So, people reading your database will not be able to retrieve the password.
I only wonder about something. md5 is a stand way of enkrypting. Is there a reverse method, able to retrieve "abc" from md5(abc) ?
Regards
Yordan

Comment/Reply (w/o sign-up)

Houdini
No, that is why it is encrypted in the first place, md5 encryption produces a 32 bit hash of the string referred to as a variable, but there is no reverse at least in PHP functions, if there were then all encrypted data would be useless. If you visit some sites that use md5 and you lose your password they can only issue another password due to the fact that md5 is irreversable, you could of course send them their md5 hash but it has to match with the password that it origionally encrypted and I doubt they would be happy with a new password of 1f3870be274f6c49b3e31a0c6728957f which is the md5 encrytion of 'apple'

Would you like it if a webmaster or other admin of a site had your password, even if he cared about it, or would you feel more comfortable knowing that your password were encrypted and very difficult to match even using brute force?

Comment/Reply (w/o sign-up)

yordan
QUOTE
Would you like it if a webmaster or other admin of a site had your password, even if he cared about it, or would you feel more comfortable knowing that your password were encrypted and very difficult to match even using brute force?

Noway, I'm familiar with the fact that the system admin simply resets passwords. And the database admin don't need user's passwords, he can directly read the data from your tables so he does not need to know your password. I was just curious about the way to do that, I never did it by myself. I usually work with oracle, and i simply give a user a password, ask the user to change his password, and then reset the password because the user lost it.

Comment/Reply (w/o sign-up)

FeedBacker
MD5 Encription
[PHP + MySQL] Encrypting Data

Replying to Houdini

This Encription is not safe Because You can easly Find The Decripted data within a single search

Md5 decription e358efa489f58062f10dd7316b65649e

Search the above word in google you will get the decripted data. So Use some simple Private encription For Better Security

-reply by ManuMadanan

-----admin opinion-----
spam.

Comment/Reply (w/o sign-up)

wutske
QUOTE(FeedBacker @ Jun 27 2008, 09:54 AM) *
MD5 Encription

[PHP + MySQL] Encrypting Data
<a href=http://www.astahost.com/index.php?showtopic=10614&view=findpost&p=70147>Replying to Houdini</a>

This Encription is not safe Because You can easly Find The Decripted data within a single search

Md5 decription e358efa489f58062f10dd7316b65649e

Search the above word in google you will get the decripted data. So Use some simple Private encription For Better Security

-reply by ManuMadanan

-----admin opinion-----
spam.


That's exactly why your passwords should be more complex and not as simple as 't' ...
Find these ones for me will you:
9571f61c4138bb26c46baceda4b750c8
f2de268dc779a73c6de9e25d61a4da1f
f8b3685e8f0ca7ef4c00d599866d65dc
18191ad14376f315b9403a108dd745d4

 

 

 


Comment/Reply (w/o sign-up)

REDMK
sweet

Comment/Reply (w/o sign-up)

yordan
QUOTE
Md5 decription e358efa489f58062f10dd7316b65649e

Search the above word in google you will get the decripted data.

You know what ? I did this google search. And the answer was : this topic !

Comment/Reply (w/o sign-up)

Quatrux
When using just simple md5() isn't very safe these days, thats way it's much better to do a random seed and generate random strings with md5 or something, which will always be the same to look, for example I have a function like this somewhere in my scripts which is a much better way to check the password and encrypt it, normally there is no way to decrypt unless you're a tough hacker or something..

It's really quite a complex thing, but when you understand that it does when you think, wow how this is simple an brilliant biggrin.gif

CODE
function pw_hash($pass) {
    /** PW HASH() Notice! **/
    // * $pass check isn't required, this
    // * function should only be called from:
    // * pw_encode(); && pw_check();

    // Split password for every letter
    $pass = str_split($pass); $salt = '';
    // Hash every letter of the password
    foreach ($pass as $letter) {
        $salt .= bin2hex(md5($letter, true)); # for PHP4 -> md5($letter);
    }
    // Return the Hash of the word
    return bin2hex(md5($salt, true)); # for PHP4 -> md5($salt);
}


function pw_encode($pass) {
    // Check Input
    if (is_string($pass) && !empty($pass)) {
        // Hash the password for every letter
        $pass = pw_hash($pass);    $seed = '';
        // Make a Random Seed
        for ($i = 0; $i < 8; $i++) {
            $seed .= substr('0123456789abcdef', mt_rand(0,15), 1);
        }
        return bin2hex(md5($seed.$pass, true)).$seed; // for PHP4 ->  md5($seed.$pass).$seed;
    } else {
        user_error('pw_encode() The input should be non empty string', E_USER_WARNING);
        return false;
    }
}


function pw_check($pass, $value) {
    // Check Input
    if (is_string($pass) && is_string($value) && !empty($pass) && !empty($value)) {
        // Hash the password for every letter
        $pass = pw_hash($pass);
        // Get the Seed
        $seed = substr($value, 32, 8);
        // Check the Passwords
        if (bin2hex(md5($seed.$pass, true)).$seed == $value) { # for PHP4 -> md5($seed.$pass).$seed == $value
            return true;
        } else {
            return false;
        }
    } else {
        user_error('pw_check() The both input values should be non empty strings', E_USER_WARNING);
        return false;
    }
}


To tell it shortly, it hashes every word and letter and hashes all those hashes into one string, I use a little bit other technique on my CMS, so I won't tell it publicly, because you can change something a little by changing some numbers and you'll get quite different results, those who knows PHP will know what it does, there are even some comments to understand its functionality..

To use them, you can do just as top post, by using some if statement and calling the functions like this:

CODE
if (pw_check($_POST['password'], $db_password) && $_POST['username'] == $db_username) { .. do something here .. } else { echo "wrong password or username in the login form or something liek that";}


If you want to encrypt the password or store it to the database, you can just do it by using the other function:

CODE
$string = $_POST['password'];

$encoded_string = pw_encode($string);


You'll see that every time you get quite different random hashed string, but the meaning is the same, when you check it with the check function, it returns true all times if the words meant the same..

To continue. why using only md5() isn't safe, because there are software for hackers which have most popular dictionaries hashed with md5() for all the words on different languages and most popular symbol and numbers with letters and they take up several GB or a TB and they use it to check check with a loop, of course to prevent that you can just do a check by logging how much he tries to login or only let your php script login everyone in a timestamp of half second or do a sleep function for everyone for a second, there are much ways you can avoid this, even if the hacker has a lot of ips to use.. wink.gif

Comment/Reply (w/o sign-up)

Arbitrary
QUOTE

That's exactly why your passwords should be more complex and not as simple as 't' ...
Find these ones for me will you:
9571f61c4138bb26c46baceda4b750c8
f2de268dc779a73c6de9e25d61a4da1f
f8b3685e8f0ca7ef4c00d599866d65dc
18191ad14376f315b9403a108dd745d4
Nonetheless, using md5 still isn't a great course of action. md5 has already been cracked, so really, does anyone want to take the chance with important data? I think quatrux's method with a salt is very useful--makes it quite difficult for crackers to obtain the actual password. On another note, php also has many other functions for encryption besides md5 (unfortunately, this is only available to php 5.1.2 and above...sad). With 5.1.2, there's a function called hash:

QUOTE(php.net)
string hash ( string $algo , string $data [, bool $raw_output ] )


The $algo can be any from a long list of hash functions, including but not limited to 'sha256' (which I think is the new government standard after sha1 was kicked out of use due to it being cracked), ripemd160, whirlpool etc. Php also provides a full list of its supported hash functions with the function hash_algos (http://us2.php.net/manual/en/function.hash-algos.php). The list looks something like this:

QUOTE
Array
(
[0]=> md4
[1] => md5
[2] => sha1
[3] => sha256
[4] => sha384
[5] => sha512
[6] => ripemd128
[7] => ripemd160
[8] => whirlpool
[9] => tiger128,3
[10] => tiger160,3
[11] => tiger192,3
[12] => tiger128,4
[13] => tiger160,4
[14] => tiger192,4
[15] => snefru
[16] => gost
[17] => adler32
[18] => crc32
[19] => crc32b
[20] => haval128,3
[21] => haval160,3
[22] => haval192,3
[23] => haval224,3
[24] => haval256,3
[25] => haval128,4
[26] => haval160,4
[27] => haval192,4
[28] => haval224,4
[29] => haval256,4
[30] => haval128,5
[31] => haval160,5
[32] => haval192,5
[33] => haval224,5
[34] => haval256,5
)


So, yes, with php 5, there are quite a variety of hash functions to choose from, including extremely secure (currently un-cracked) ones. However, if you're stuck with php 4, there's always the sha1 function, which is still quite a ways better than md5 for mid-level security things.

Comment/Reply (w/o sign-up)

Latest Entries

pyost
QUOTE (iGuest-sharat khajuria @ Sep 4 2008, 07:45 AM) *
How do we can fetch the encrypted password into decrypted form in php,mysql ?

[PHP + MySQL] Encrypting Data



I have inserted a password in mysql database in encrypted form using md5 but if the user forgets his password then how we can fetch the encrypted password into decrypted form ( original password)

-question by sharat khajuria


This cannot be done. MD5 is a one-way encryption algorithm, which means you can only encrypt it, not decrypt it. After all, this is what makes it secure. When a user forgets his/her password, there is no way to recover it - you can only generate a new password and send it to their e-mail address.

QUOTE (javah @ Feb 24 2009, 08:43 AM) *
i always encrypted password with plus string
ex:
$pass = $_POST['t_password'];
$en_pass=md5($pass . "string");


It's always a good thing to add more characters to the password - even better if they are random wink.gif

Comment/Reply (w/o sign-up)

javah
i always encrypted password with plus string
ex:
$pass = $_POST['t_password'];
$en_pass=md5($pass . "string");

Comment/Reply (w/o sign-up)

Quatrux
Note; to people who will use my method to encode/encrypt the password, it seems really a great method and it seems really hard to obtain the actual password, but one day I woke up and understood one bad thing about it:

Because the password is always random and all those random passwords can evaluate to true if a check is being made, there are much bigger chance that the cracker will guess the password by using random letters and numbers and symbols, this is really quite a big flaw, I will need to rethink how it works and I ill need to make it create a one unique encrypted password to use..

The only thing now I can say about this function is that if you want to hide the word, it will be hard to get it back for a cracker if he does not have the encryption function and could not be guessing.. heh! I'm really disappointed, but when you think, it still is a quite good way to store your passwords, just that it could be even better if I will make it create only one unique string..

[EDIT]

I think I was wrong, there's only one possibility to evaluate to true, only if the password is good, because it doesn't matter about the seed, you still check the password with pw_check(); and it only evaluates to true from writing the real password.

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2
Similar Topics

Keywords : , php, mysql, encripting, data, protect, password, db

  1. Reading Xml Data
    Within PHP (2)
  2. Letting Users Add Mysql Data With Php
    (1)
    I'm curious as to the best methods of letting users submit data to a MySQL database, displaying
    that data, and removing any unwanted tags etc. from it. Currently, there's a handful of PHP
    functions that I know of to help with this: mysql_real_escape_string() - perhaps the best known
    and most commonly used function, it should be used in pretty much any MySQL query. It escapes
    characters that have SQL significance. QUOTE(php.net) ...which prepends backslashes to the
    following characters: \x00, \n, \r, \, ', " and \x1a I like to think I made a pretty....
  3. Mysql Question(inserting Number From A Textfield)
    (3)
    Hey! I am trying to do a "Admin give EXP script". But I can't make it work. The value is not
    updating, but the update query is correct.( I think:P) I think the fault is here: CODE
    $expcomp=$givexpp += $givexp; The $givexp is the variable for the amount of Xp the admin wants
    to give. the $givexpp is the variable for the user info (in this case, the experince he already
    have). The datatype for the XP in the database is INT. So I have no idea if it can take data from a
    normal textfield. If you need to see all the code, here you go: CODE session_start();....
  4. Making Something In Mysql Happen Only Once
    (10)
    Hey! I know I am asking alot. But much is happening theese days. Sorry if I disturb with my
    questions. The thing I am trying to do is: Ex. If the user becomes level 2, he should get 5 skill
    points. I can't do this: CODE if($userlevel=5){ mysql_query("UPDATE user SET skillpoints
    =$points+5");} because then it would update everytime the code was loaded. I hope you understand
    what I am trying to do. If not, tell me /smile.gif" style="vertical-align:middle" emoid=":)"
    border="0" alt="smile.gif" /> and i'll try to explain better. Thanks //Feelay....
  5. Making A Link = Mysql_query
    (8)
    Hey! I will try to make this as clear as possible. how can I make the following. I have a list,
    of all members on my site. If I press on a members name(link), I will come to his profile. To come
    to his profile, I need to get out some vaule from the database, but to get out some value from the
    database, I must tell the code, how it should know who the user is (hard to understand?). To do
    that, I must add a mysql_query in the code ( I think), like "SELECT user FROM dbname WHERE
    user=link".. This is just how I think it works. I know it is kinda wrong.. but I don't k....
  6. Password Recovery Script
    (7)
    While trying to make password recovery script for "bhupinunder" i run into a problem... i made this:
    CODE $dbh = mysql_connect('localhost','jaskaran_gc','gc') or die
    ("Cannot Connect: " . mysql_error()); mysql_select_db('jaskaran_gc',$dbh); ?> ";?>
    if ($recover=answer) print"$email"; ?> and it doesn't print anything...but if i put it
    like this CODE $dbh = mysql_connect('localhost','jaskaran_gc','gc') or
    die ("Cannot Connect: " . mysql_error()); mysql_select_db('jaskaran_gc',$dbh....
  7. Warning: Mysql_result(): Supplied Argument Is Not A Valid Mysql Result Resource In ...
    This Is for My attack Script. (4)
    Hey. I am making a "Version 2.0" For my attack script, but I can't make it work. This is the
    error I am gettin: Warning: mysql_result(): supplied argument is not a valid MySQL result resource
    in And here is the code: CODE $dbQueryHealth = mysql_query("SELECT temphealth FROM
    characters WHERE user =". $_POST ."");           $currentHealth = mysql_result($dbQueryHealth, 0);
            $dbQueryExp = mysql_query("SELECT exp FROM characters WHERE user = ".$_POST ."");  
            $currentExp = mysql_result($dbQueryExp, 0); I have checked the PHP Manual,....
  8. Warning: Mysql_num_rows()
    What is the error :S (1)
    Hey! I've made a register script.. Some time ago it worked. And I ain't sure if I changed
    something since then.. The error I am getting is this: Warning: mysql_num_rows(): supplied argument
    is not a valid MySQL result resource in /home/feelay/public_html/regcheck.php on line 31 Here is
    the code on theese lines: CODE $sqlCheckForDuplicate = "SELECT username FROM user WHERE username
    = '". $username ."'";                 if( mysql_num_rows( mysql_query(
    $sqlCheckForDuplicate ) ) == 0 )         {             $sqlRegUser =     "INSERT INTO            ....
  9. Getting Certain Parts Of A Record
    The character data (17)
    Ok I need help on this puzzling problem. At first I thought that this person stored the dates in the
    MySQL database like this: August 27, 2007 That kinda freaked me out a little, because string dates
    are hard to manipulate. Then I found out that he stored both th string data and numerical date,
    which I found a little bit odd, but it was like this: 2007-08-27 I need to build a PHP program to
    manipulate the data, but I need to access the year, month and day respectively by themselves. I
    think that isolating the first 4 characters for the year, last 2 characters for da....
  10. Anyone Know Of A Really Good Mysql Class?
    Looking for something easy but full featured. (4)
    Generally speaking, when I write a script, it either utilizes the MySQL class of the parent system
    (like Mambo or Joomla) or I use basic functions and snippets to perform the database queries I need.
    I really like the Joomla database class as it allows you to simply pass a regular query string to
    it and the data is returned without the need for extra work! The Invision Power Board (IPB)
    database class which is what is used for this forum is kind of a pain to use since it wants the
    query string in a non-MySQL standard format. Nonetheless, it does work and I could use i....
  11. Extracting Mysql Maths Using Php
    (2)
    Right, this is a really simple thing and it has me completely stumped. I'm working on this mini
    maths function and for some reason i cannot seem to do some simple math process using mysql. This is
    the code: (php btw), now assume that $date is actually a defined mysql date variable already
    successfully extracted. $sql = mysql_query("SELECT TO_DAYS('CURDATE()') -
    TO_DAYS('$date')"); while ($row = mysql_fetch_array($sql)){ $diff = $row ; } Can
    anyone spot what im doing wrong becuase im just thrown by it.....
  12. Too Many Connections?
    mysql_connect() (4)
    I uploaded my PHP game yesterday, and most of my friends tried it out. After a while, I tried to
    play as well but it said that mysql_connect() had too many connections already. Can anyone tell me
    how to increase the amount of connections or maybe the total amount of connections allowed?....
  13. Php/mysql And Manual Page Caching?
    (4)
    I am hopefully about to attempt this on the news page of my new site. Every bit counts as far as
    I'm concerned and not having "news" portion of my news page re-php and re-mysql everything where
    there is no chance seems like a waste. I'm looking for good articles, information or tips on
    the process (if I fail to find any good information as I'm looking through now). The way I see
    it right now, I have most of my page split up in header, content (some static html in here before
    dynamic contend and then a little more static html to close it off) and then a foo....
  14. Sql Injection Prevention (passing Numerical Data Across Pages).
    PHP/mySQL (9)
    Even if your building something as simple as a basic news page for your website, if your passing
    along url variable strings like (mysite/index.php?page=1), you may be vulnerable to SQL injection
    attacks. For cases like these (passing numerical data in url strings), I have a handy dandy little
    function to thwart these attempts silly: CODE // For checking if value is a number, if not
    return 1. function isNum($val) {   if (!is_numeric($val)) { $val = 1; }   return ($val); } I
    have this function, within my functions.php file, which I use as an include in files w....
  15. Php Mysql Errors
    Fetching arrays (2)
    I am deciding to make a Multiplayer Online RPG type game. I will be building it off of PHP and MySQL
    to ensure makimum compatibility with Astahost's services (and it makes it easier /wink.gif"
    style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />). I have a database setup with
    1 table to hold user data and I have the login system setup properly as well as the registration
    form (obviously). All games of course have something similar to gold, units and points. Because
    this is a turn-based game, I have turns. Now for the problem: I am trying to echo ....
  16. Retrieving Data And Displaying In Boxes
    How do I make a grid of boxes? (6)
    I have successfully setup a MySQL Database with a few tables in it to store user input! /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> /biggrin.gif"
    style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> Woohoo! Now the problem is
    displaying the data. I want 4 boxes echoing across with 3 rows down so that makes 12 boxes (12 of
    the most recent records). I have no clue how to do this because I cannot use the W3Schools example
    of echoing into a table. Here is the code I used but it echoes the same information across th....
  17. Proper Way To Grab User Data?
    (1)
    I'm working on a script where there is a custom user profile and I was wondering if there was a
    more efficient way to grab data stored in a database than this method: CODE $sql = "SELECT *
    FROM users WHERE `access_name` = \""  .$active_user. "\""; $row =
    mysql_fetch_array(mysql_query($sql)); //Link the two tables together; grab the most common thing
    that is the *SAME* $user_id = $row ; $sql2 = "SELECT * FROM content WHERE `cid` = \""  .$user_id.
    "\""; $row2 = mysql_fetch_array(mysql_query($sql2)); Then on the pages, I just do a where ever
    something is supp....
  18. How To Show Serial Nums In PHP Table For Contents Of MySQL DB
    Serial Numbering for output contents of mysql in php table (4)
    Hello there, I'm looking for some education. How would you show the serial numbering for
    outputted contents of mysql database. I used a table created in PHP to output content (i.e. an
    alumni database) and I created a column for S/N, so that at a glance anyone can tell how many
    members have registered. Thanks house. Neyoo....
  19. PHP & MySQL: Displaying Content From A Given ID
    (6)
    Okay so I got this sample link (not working): http://www.acosta.com/joo.asp?id=654 Now suppose
    I have a PHP file that would use MySql in order to get all values in the row where id 654 is found.
    Here's a sample DB: Table: demnyc ______________________________________ | id |
    Name | Age | Email | *----------------------------------------------------* | 1
    | Albert | 17 | no email |
    *----------------------------------------------------* | 2 | YaPow | 888 |
    no email | |__________....
  20. Re-order MySQL Table
    (11)
    Hello you all, I've got a question /smile.gif" style="vertical-align:middle" emoid=":)"
    border="0" alt="smile.gif" /> Let's say I have a database width the table "news". It contains
    about 10 items which is ordered by the field "id". Now from my admin page i do this: CODE
    mysql_query("DELETE FROM news WHERE id=4"); ?> And a few days later i do: CODE
    mysql_query("DELETE FROM news WHERE id=7"); ?> Now there are two gaps in the table => 1, 2, 3,
    5, 6, 8, 9, 10 (no 4 and 7). It want to reallocate the whole table to fill the gaps like this => 1,
    2,....
  21. Send XML Data To PHP Page
    (0)
    Hi, i'm trying to send my xml file "xmlDoc" to a php page so I can save it. Does anyone have the
    code for this?....
  22. Need MySQL Alternative To The Syntax "or die()"
    (9)
    Hello again /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
    I'm facing a problem with PHP and MySQL... I want, when a MySQL error occurs, to let the script
    continue. Here's the script: CODE $query = "SELECT * FROM menus ORDER BY id ASC";
    $menus_result = mysql_query($query) or die("Error!"); while( $menu=mysql_fetch_array($menus_result)
    ) {    echo $menu ." "; } Now if the table "menus" doesn't exist, this would echo "Error!"
    where it's placed and terminate the whole script. But I want it to echo "Error!" and....
  23. Data Passing - Re An Assignment For School - Please Help :)
    (8)
    I'm working on a small assignment due tomorrow and am having some trouble. I have a functioning
    form that you input the data on one php page, and then it does a little math and displays the result
    on a new page. The assignment is to make this work on ONE page, and to add some error handling.
    I'm having trouble with the basics of passing the data that has been input on the form, back to
    itself. I am stuck with a few questions but I'll start with one. I have the data passing back
    to itself so that when I start the error checking, the fields won't have ....
  24. Need An Alternative To $http_post_data For PHP4
    (5)
    Hi, my client's host site currently hosts just 4.0. I tried using the
    file_get_contents("php://input") and $HTTML_post_data php file to save the XML file from Flash but
    when loaded, it returns nothing. I need hlep....
  25. Storing Data Into Xml With A Php Form
    Need Help! (2)
    Hi, I just learned how to read an xml file with PHP. The problem now is that I don't know how to
    write onto it. I would like to read my news content and be able to add more to it when another story
    comes up but I don't know how to write into the xml via PHP. All I know how to do is to edit the
    XML file itself manually. Can anyone help me?....
  26. Need Help With 2-Way Password Encryption
    How to properly store passwords in a database (8)
    Every article I've read on the internet so far suggests using MD5 or SHA1 to "encrypt" passwords
    in a database, but MD5 and SHA1 are hashing functions; they only go one way. So then how do I let
    users know what their password is if they forget it? I suppose I need a two-way encryption method,
    right? Can somebody please tell me what the easiest way to solve my problem is with PHP and MySQL?
    Thanks, Trevor....
  27. Important: Basics Of Using PHP And MySQL
    (10)
    I generally notice confusion with new users to PHP and or MySQL and first of all I believe that
    unlike HTML which is automatically associated with a IE browser in a Microsoft system. HTML is
    automatically rendered with whatever browser is the default browser, be it Internet Expolrer Firefox
    Netscape or any other browser that has been set. PHP is a different matter to view the output of a
    PHP file it must be run on a webserver, and if you do not have one set up on your local PC it simply
    will not work. (Note serverside langauge requies a server) HTML is client side and ....
  28. PHP Script To Upload A File
    with password-protection. (15)
    Problem: Upload a file to the AstaHost account (that I have been granted here) throught the
    webpage I would like to know, how should I proceed on this particular problem. I know this has
    been done through cPanel, but I want to write a PHP functionality. The cPanel is accessed through
    the 2082 port, and most of the places I access internet from does not give me access through that
    port. I can access http://www.kmaheshbhat.astahost.com/ but not
    http://www.kmaheshbhat.astahost.com/cpanel or http://www.kmaheshbhat.astahost.com:2082/ . I need
    to go to one particu....
  29. Need Help With A PHP - MySQL Registration Script
    Wont INSERT into the database (13)
    hey well can some one helpme make this code work it won't INSERT INTO THE DATABSE CODE #
    register1.php # common include file to MySQL include("DB.PHP"); $Username=$_POST ; $Password=$_POST
    ; $Name=$_POST ; $Last=$_POST ; $Sex=$_POST ; $Month=$_POST ; $Day=$_POST ; $Year=$_POST ;
    $Adresse=$_POST ; $City=$_POST ; $State=$_POST ; $Zipcode=$_POST ; $Country=$_POST ; $Phone=$_POST ;
    $Email=$_POST ; $Father_Name=$_POST ; $Mother_Name=$_POST ; $Parent_Phone=$_POST ;
    $Parent_Email=$_POST ; $Level=$_POST ; $Academic=$_POST ; $Image_Link=$_POST ; $sql9="INSERT INTO
    U....
  30. Php, Sql Lite: Storing Session's Data?
    how so store session in SQLITE? (1)
    normally, in windows, session data is saved in the location as directed by the "session.save_path"
    directives. they only show how to store session data in file. is it possible to store it inside the
    SQLite? anyone?....

    1. Looking for , php, mysql, encripting, data, protect, password, db

See Also,

*SIMILAR VIDEOS*
Searching Video's for , php, mysql, encripting, data, protect, password, db
Similar
Reading Xml Data - Within PHP
Letting Users Add Mysql Data With Php
Mysql Question(inserting Number From A Textfield)
Making Something In Mysql Happen Only Once
Making A Link = Mysql_query
Password Recovery Script
Warning: Mysql_result(): Supplied Argument Is Not A Valid Mysql Result Resource In ... - This Is for My attack Script.
Warning: Mysql_num_rows() - What is the error :S
Getting Certain Parts Of A Record - The character data
Anyone Know Of A Really Good Mysql Class? - Looking for something easy but full featured.
Extracting Mysql Maths Using Php
Too Many Connections? - mysql_connect()
Php/mysql And Manual Page Caching?
Sql Injection Prevention (passing Numerical Data Across Pages). - PHP/mySQL
Php Mysql Errors - Fetching arrays
Retrieving Data And Displaying In Boxes - How do I make a grid of boxes?
Proper Way To Grab User Data?
How To Show Serial Nums In PHP Table For Contents Of MySQL DB - Serial Numbering for output contents of mysql in php table
PHP & MySQL: Displaying Content From A Given ID
Re-order MySQL Table
Send XML Data To PHP Page
Need MySQL Alternative To The Syntax "or die()"
Data Passing - Re An Assignment For School - Please Help :)
Need An Alternative To $http_post_data For PHP4
Storing Data Into Xml With A Php Form - Need Help!
Need Help With 2-Way Password Encryption - How to properly store passwords in a database
Important: Basics Of Using PHP And MySQL
PHP Script To Upload A File - with password-protection.
Need Help With A PHP - MySQL Registration Script - Wont INSERT into the database
Php, Sql Lite: Storing Session's Data? - how so store session in SQLITE?
advertisement



[PHP + MySQL] Encrypting Data - To protect the password of your DB, for example.

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com