YII Extension for the Hashids library
Put the yii-hashids folder into the extensions folder.
'components' => array(
...
'hashids' => array(
'class' => 'application.extensions.yii-hashids.CHashIDs',
),
...
)
// get hashid from numerical ID
Yii::app()->hashids->encrypt(<id>)
// get back the ID from the hashid
Yii::app()->hashids->decrypt(<hashid>)