CI_Encrypt::get_key PHP Method

get_key() public method

Returns it as MD5 in order to have an exact-length 128 bit key. Mcrypt is sensitive to keys that are not the correct length
public get_key ( $key = '' ) : string
return string
    public function get_key($key = '')
    {
        if ($key === '') {
            if ($this->encryption_key !== '') {
                return $this->encryption_key;
            }
            $key = config_item('encryption_key');
            if (!strlen($key)) {
                show_error('In order to use the encryption class requires that you set an encryption key in your config file.');
            }
        }
        return md5($key);
    }