小编Man*_*dan的帖子

如何在php中解密sha1?

下面我使用sha1加密了一个字符串变量.现在我希望使用sha1函数解密数据,但我会去一些地方.有人会挺身而出,以正确的方式指导我.

以下是我的代码

<?php
   $variable  = "tiger";
   echo $variable;
   $encrypt = sha1($variable);
   echo $encrypt;
   $decrypt = sha1($encrypt);
   echo $decrypt;
 ?>
Run Code Online (Sandbox Code Playgroud)

我得到这样的输出

tiger
46e3d772a1888eadff26c7ada47fd7502d796e07
989df2c8b5ea37eb7cfde0527d94c01a15257002
Run Code Online (Sandbox Code Playgroud)

php sha1

7
推荐指数
1
解决办法
6万
查看次数

如何在ejabberd中阻止特定的jabber_id给某个人?

嗨,我已经在我的服务器中安装了ejabberd 16.04.43,并按照我的需要运行它.

现在我有了新的要求阻止特定用户的特定用户

让我考虑一下用户:

kandan
cash
mani
kumar
lokesh
Run Code Online (Sandbox Code Playgroud)

它们中的每一个在ejabberd中都有一个特定的jabber id,它们通过使用该命令相互交互

add rosteritem
Run Code Online (Sandbox Code Playgroud)

现在我需要的是,

 **kandan blocks cash** such that any further message from kandan to cash or from cash to kandan should not deliver each other , so can anyone tell me how to implement?
Run Code Online (Sandbox Code Playgroud)

我用mod_block安装,但我没有在附近回答我的预期.. !!!

ejabberd ejabberd-module

2
推荐指数
1
解决办法
647
查看次数

如何在codeigniter中构建嵌套查询?

嗨,下面是从不同表中获取不同数据计数的查询。

select(
        select count(*)
        from teachers
        where teacher_status = 1
  )as teacher_count,
  (
        select count(*)
        from students
        where student_status = 1
  )as students_count,
  (
        select count(*)
        from housekeepers
        where housekeeper_status = 1
  )as housekeeping_count,
  ( 
        select count(*)
        from students
        where student_status = 1 and
              gender = "Male"
  ) as total_male_student_count,
  ( 
        select count(*)
        from students
        where student_status = 1 and
              gender = "Female"
  ) as total_female_student_count
Run Code Online (Sandbox Code Playgroud)

现在我想在 codeigniter 构建器类的帮助下在 codeigniter 中构建这个单个查询,所以有人可以指导我吗..

运行单个查询的目的是最小化数据库命中。

提前致谢..!!!

php mysql codeigniter database-performance

2
推荐指数
1
解决办法
2936
查看次数