#include using namespace std; unsigned int encrypt(unsigned int x){ unsigned int low=x>>16,up=x>16; up=up^(low<<16); return low|up; } int main(){ unsi... ...
分类:
其他好文 时间:
2018-06-19 19:30:44
阅读次数:
147
You task is to find minimal natural number N, so that N! contains exactly Q zeroes on the trail in decimal notation. As you know N! = 1*2*...*N. For e ...
分类:
其他好文 时间:
2018-06-16 17:50:35
阅读次数:
208
1 #include "memory.h" 2 #include "stdio.h" 3 enum {encrypt,decrypt};//ENCRYPT:加密,DECRYPT:解密 4 void des_run(char out[8],char in[8],bool type=encrypt); ... ...
分类:
编程语言 时间:
2018-06-12 13:39:03
阅读次数:
232
代码如下:import pyDes
import base64
Key = "Gogenius"
Iv = "Gogen123"
# 加密
def encrypt_str(data):
# 加密方法
&n
分类:
编程语言 时间:
2018-06-12 11:41:44
阅读次数:
239
没有 https 加持的网站会逐渐地被浏览器标记为不安全的,所以为网站添加 https 已经变得刻不容缓。对于商业网站来说,花钱购买 SSL/TLS 证书并不是什么问题。但对于个人用户来说,如果能有免费的 SSL/TLS 证书可用将会是非常幸福的事情!Let's Encrypt 就是一个提供免费 S ...
分类:
Web程序 时间:
2018-06-11 10:54:41
阅读次数:
263
最近应业务需求,做了支付宝支付和微信支付,今天分享一下手机端app支付宝支付对接流程,实际开发过程是前后端分离,前端调用后端接口,实现功能返回数据,大致可以分为四步: 1.在蚂蚁金服开放平台创建应用,签约商户,生成应用公钥和私钥; 2.配置统一下单支付参数; 3.整合支付宝demo类文件; 4.创建 ...
分类:
移动开发 时间:
2018-06-07 11:41:25
阅读次数:
1135
在node1进行如下操作:su - oracle 1)使用vi init11grac.ora创建pifle,内容如下: *.audit_file_dest='/u01/app/oracle/admin/prod/adump'*.audit_trail='db'*.control_files='+pr ...
分类:
其他好文 时间:
2018-06-06 12:31:07
阅读次数:
187
最近用let's encrypt制作里的https证书,给网站改为Https.更改后之前做的一些http post请求报错,提示System.Net.WebException: 基础连接已经关闭: 发送时发生错误。 > System.IO.IOException: 从传输流收到意外的 EOF 或 0 ...
分类:
其他好文 时间:
2018-06-01 10:48:40
阅读次数:
575
Let's Encrypt免费SSL证书的出现,也会对传统提供付费SSL证书服务的商家有不小的打击。到目前为止,Let's Encrypt获得IdenTrust交叉签名,这就是说可以应用且支持包括FireFox、Chrome在内的主流浏览器的兼容和支持,虽然目前是公测阶段,但是也有不少的用户在自有网 ...
分类:
其他好文 时间:
2018-05-29 17:07:04
阅读次数:
234