0% found this document useful (0 votes)
41 views2 pages

Example: Application/views/myform - Php. This Page Will Display Form Where User Can Submit His

This document provides guidelines for securely handling passwords in web applications. It recommends hashing passwords with strong algorithms like BCrypt instead of weak algorithms like MD5 or SHA1. It also advises against displaying passwords in plain text, encoding passwords with Base64, or putting unnecessary limits on password length. Developers are told not to store passwords in plain text format.

Uploaded by

prabhu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views2 pages

Example: Application/views/myform - Php. This Page Will Display Form Where User Can Submit His

This document provides guidelines for securely handling passwords in web applications. It recommends hashing passwords with strong algorithms like BCrypt instead of weak algorithms like MD5 or SHA1. It also advises against displaying passwords in plain text, encoding passwords with Base64, or putting unnecessary limits on password length. Developers are told not to store passwords in plain text format.

Uploaded by

prabhu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Always hash your passwords.

DO NOT use Base64 or similar encoding for storing passwords.


easier. You also configure the preferences regarding email in CodeIgniter. CodeIgniter
provides following features for sending emails:
Multiple Protocols: Mail, Sendmail, and SMTP
TLS and SSL Encryption for SMTP

DO NOT use weak or broken hashing algorithms like MD5 or SHA1. Only use strong
password hashing algorithms like BCrypt, which is used in PHPs own Password Hashing
functions.
DO NOT ever display or send a password in plain-text format.
DO NOT put unnecessary limits on your users passwords.
}
public function send_mail()
{
$from_email = "[email protected]";
Validation is an important process while building web application. It ensures that the data
that we are getting is proper and valid to store or process. CodeIgniter has made this task
very easy. Let us understand this process with a simple example.

Example
Create a view file myform.php and save the below code it in
application/views/myform.php. This page will display form where user can submit his
name and we will validate this page to ensure that it should not be empty while submittin
Multiple recipients
CC and BCCs
HTML or Plaintext email
$this->load->helper('form');
$this->load->view('email_form');
$to_email = $this->input->post('email');
//Load email library
Email class has the following functions to simplify the job of sending emails e PowerPoint

Presentation
$this->load->library('email');
$this->email->from($from_email, 'Your Name');
$this->email->to($to_email); New Microsoft OfficSending email in CodeIgniter is much
Attachments
Word wrapping
Priorities
BCC Batch Mode, enabling large email lists to be broken into small BCC batches.

Email Debugging tools


Validation is an important process while building web application. It ensures that the data

Example
}
public function send_mail()
{
$from_email = "[email protected]";
that we are getting is proper and valid to store or process. CodeIgniter has made this task
very easy. Let us understand this process with a simple example.

Password Handling

Many developers do not know how to handle password in web applications, which is
probably why numerous hackers find it so easy to break into the systems. One should keep
in mind the following points while handling passwords:
DO NOT store passwords in plain-text format.

You might also like