GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - perfectcube/Cipher-Behavior-for-CakePHP: A wrapper for Security::cipher to automatically encrypt/decrypt specified fields

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
cipher.php
cipher.php
 
 

Repository files navigation

Cipher Behavior for CakePHP 1.3

Overview

This behavior handles encrypting and decrypting fields, to store information securely in the database. It uses either mcrypt or CakePHP's built-in Security::cipher.

Installation

  1. Save cipher.php into app/models/behaviors/

  2. In the model that has the fields to encrypt, add Cipher to the $actsAs array, along with the settings to use.

     var $actsAs = array(
     	'Cipher' => array(
     		'fields' => array('password')
     	)
     );
    

Settings

  • fields (array): Fields to cipher. Default: no fields
  • autoDecrypt (boolean): Decrypt ciphered fields automatically. Default: true
  • key (string): Key to encrypt with. Default: Security.salt
  • cipher (string): Cipher method to use (cake OR mcrypt OR auto). Default: auto

https://github.com/jmillerdesign

About

A wrapper for Security::cipher to automatically encrypt/decrypt specified fields

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

5 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.