Security

Yii 2 Security

Security in Yii 2


Content of the «Security» section:


Articles section «Security»:

Security best practices

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active

Security best practices

Below we'll review common security principles and describe how to avoid threats when developing applications using Yii. Most of these principles are not unique to Yii alone but apply to website or software development in general, so you will also find links for further reading on the general ideas behind these.

AuthClient Extension for Yii 2

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active

AuthClient Extension for Yii 2

This extension adds OpenID, OAuth and OAuth2 consumers for the Yii framework 2.0.

Cryptography Yii 2

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active

Cryptography

In this section we'll review the following security aspects:

Working with Passwords Yii

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active

Working with Passwords

Most developers know that passwords cannot be stored in plain text, but many developers believe it's still safe to hash passwords using md5 or sha1. There was a time when using the aforementioned hashing algorithms was sufficient, but modern hardware makes it possible to reverse such hashes and even stronger ones very quickly using brute force attacks.

Authorization in Yii

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active

Authorization

Authorization is the process of verifying that a user has enough permission to do something. Yii provides two authorization methods: Access Control Filter (ACF) and Role-Based Access Control (RBAC).

Authentication in Yii 2

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active

Authentication

Authentication is the process of verifying the identity of a user. It usually uses an identifier (e.g. a username or an email address) and a secret token (e.g. a password or an access token) to judge if the user is the one whom he claims as. Authentication is the basis of the login feature.