From 4b68e21a1e78d24b9e56e73711d400ffb8c8e4e1 Mon Sep 17 00:00:00 2001 From: Dennis Bartlett Date: Tue, 8 Jan 2013 02:57:02 -0600 Subject: [PATCH 1/2] Update _posts/06-01-01-Databases.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found a typo on line 68:   missing form another -> missing from another  --- _posts/06-01-01-Databases.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/06-01-01-Databases.md b/_posts/06-01-01-Databases.md index cfaa556..ce47ec4 100644 --- a/_posts/06-01-01-Databases.md +++ b/_posts/06-01-01-Databases.md @@ -65,7 +65,7 @@ unless of course you are using persistent connections. ## Abstraction Layers Many frameworks provide their own abstraction layer which may or may not sit on top of PDO. These will often emulate features for -one database system that another is missing form another by wrapping your queries in PHP methods, giving you actual database abstraction. +one database system that another is missing from another by wrapping your queries in PHP methods, giving you actual database abstraction. This will of course add a little overhead, but if you are building a portable application that needs to work with MySQL, PostgreSQL and SQLite then a little overhead will be worth it the sake of code cleanliness. From 0e4171332c698ee588666f79d15f25a097051caa Mon Sep 17 00:00:00 2001 From: Dennis Bartlett Date: Tue, 8 Jan 2013 03:15:19 -0600 Subject: [PATCH 2/2] Update _posts/07-03-01-Password-Hashing.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Typo Found on line 13:  It will updated -> It will be updated  --- _posts/07-03-01-Password-Hashing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/07-03-01-Password-Hashing.md b/_posts/07-03-01-Password-Hashing.md index 1047368..3640e48 100644 --- a/_posts/07-03-01-Password-Hashing.md +++ b/_posts/07-03-01-Password-Hashing.md @@ -10,7 +10,7 @@ It is important that you properly [_hash_][3] passwords before storing them. Pas **Hashing passwords with `password_hash`** -In PHP 5.5 `password_hash` will be introduced. At this time it is using BCrypt, the strongest algorithm currently supported by PHP. It will updated in the future to support more algorithms as needed though. The `password_compat` library was created to provide forward compatibility for PHP >= 5.3.7. +In PHP 5.5 `password_hash` will be introduced. At this time it is using BCrypt, the strongest algorithm currently supported by PHP. It will be updated in the future to support more algorithms as needed though. The `password_compat` library was created to provide forward compatibility for PHP >= 5.3.7. Below we hash a string, we then check the hash against a new string. Because our two source strings are different ('secret-password' vs. 'bad-password') this login will fail.