Wiki

Articles tagged with "security", sorted by date (updated)X
Displaying 1-10 of 18 result(s).

Simple authorization system

Updated 27 days ago by GustavoHow-tos1 comment – viewed 15,325 times – ( +16 )
How to create a simple (non-RBAC) authorization system

Use crypt() for password storage

Updated about a month ago by fsbTutorials11 comments – viewed 15,330 times – ( +16 )
There Is Now A cpasswordhelper Class In system.utils at GitHub that provides an API to simplify the use of crypt() for password storage. While this wiki article remains valid, it will in due course be rewritten to refer to the new class as well as explain how it works.

Getting to Understand Hierarchical RBAC Scheme

Updated 5 months ago by GismoTutorials10 comments – viewed 44,170 times – ( +50 )
Authentication and Authorization is a good tutorial. Among other topics, it describes basic aspects of Yii's RBAC implementation. But however hard I read the tutorial, I couldn't understand how exactly the hierarchy works. I found how to define authorization hierarchy, how business rules are evaluated, how to configure authManager, but almost nothing about how I should build my hierarchy, in what sequence its nodes are checked, when the checking process stops and what would be the checking result.

Secure password hashing with bCrypt

Updated 5 months ago by Ivo PereiraHow-tos3 comments – viewed 11,106 times – ( +6 )
In this article I will show you how to implement a secure password hashing mechanism in your Yii projects using a bCrypt class.

How to write secure Yii applications

Updated 6 months ago by François GannazHow-tos11 comments – viewed 69,323 times – ( +78 )
warning: While this security guide tries to be quite complete, is not exhaustive. If security matters for you, you ought to check several other references.

Using phpseclib with Yii

Updated 7 months ago by nkdHow-tos6 comments – viewed 3,348 times – ( +2 )
I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does not requite mcrypt to be installed in the phpserver!
tags: security

ACL and RBAC

Updated 10 months ago by kevinkorbHow-tos0 comments – viewed 6,879 times
This HowTo assumes that you have a smattering of ACL in general and of how the acl-extension works basically. It will introduce you into the abstract and give you a hint on how to use Business-Rules. If you have in-depth questions, please refer to the extension documentation. Using ACL in an RBAC-manner cannot and should never obscure the fact that the underlying system is still ACL-based. In fact, the Business-Rules are just another layer in the permission-check plan.

Show captcha after <N> unsuccessfull attempts

Updated 11 months ago by zitterHow-tos6 comments – viewed 7,527 times – ( +14 / -3 )
In this mini howto I would like to show how to add a required captcha field in the login form, after a defined number of unsuccessfull attempts. To do this, I will use the blog demo that you have in default Yii download package (path/to/yii/demos/blog).

Secure password hash storage and a Yii helper extension

Updated 11 months ago by fsbTutorials5 comments – viewed 16,914 times – ( +14 )
This article was rewritten as the README of the Randomness GitHub repo

Authenticating against phpass hashes with Yii

Updated about a year ago by Da:SourcererHow-tos18 comments – viewed 15,753 times – ( +25 )
The Portable PHP password hashing framework allows advanced password hashing offering increased security over simple MD5- or SHA1-hashed passwords. phpass is already in use in some larger projects such as WordPress (since v2.5), Drupal 7 and phpBB 3.