public static function encrypt($value)
        {
            $iv     = mcrypt_create_iv(static::iv_size(), static::randomizer());
            $value  = static::pad($value);
            $value  = mcrypt_encrypt(static::$cipher, static::key(), $value, static::$mode, $iv);
            return base64_encode($iv . $value);
        }