Page 202 - CITS - Computer Software Application -TT
P. 202
COMPUTER SOFTWARE APPLICATION - CITS
The DELETE statement is used to delete records from a table:
Notice the WHERE clause in the DELETE syntax: The WHERE clause specifies which record or records that
should be deleted. If you omit the WHERE clause, all records will be deleted!
Example (MySQLi Object-oriented):
Password encryption with SHA in online forms
Security Measures in PHP Password Encryption with SHA in Online Forms
Introduction:
Ensuring the confidentiality of user passwords is paramount in web development. Employing strong encryption
techniques is vital, and one widely used method is hashing passwords with SHA (Secure Hash Algorithm).
Explanation:
The `password_hash` function in PHP simplifies the process of securely hashing passwords. When a user
registers and sets a password, the hashed version is stored in the database. During login attempts, the entered
password is hashed and compared to the stored hash.
189
CITS : IT&ITES - Computer Software Application - Lesson 47 - 62