- substr: documentation ( source)
- time: documentation ( source)
- mt_rand: documentation ( source)
- str_shuffle: documentation ( source)
- md5: documentation ( source)
<?php
echo substr($this->ci->encrypt->encode(str_shuffle(md5(time())), mt_rand()), 0, 42);