pu369com

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 32 下一页

2021年10月15日

Python3 md5/base64/sha系列 hex 加密

摘要: 原文在:https://www.cnblogs.com/gqv2009/p/12361900.html md5加密(HASH) md5是不可逆的,不能解密 不论字符串多长,生成的md5是等长的 md5 import hashlib #import md5 #Python2里的引用 s='python 阅读全文

posted @ 2021-10-15 11:20 pu369com 阅读(478) 评论(0) 推荐(0) 编辑

aes-256-gcm_python3_php7_golang

摘要: aes-256-gcm_python3_php7_golang 转载注明来源: 本文链接 来自osnosn的博客,写于 2021-02-07. 以下的,不同语言的加解密函数,输出内容可以互通。 python3 #!/usr/bin/python3 ### coding: utf-8 from cry 阅读全文

posted @ 2021-10-15 10:21 pu369com 阅读(130) 评论(0) 推荐(0) 编辑

2021年10月14日

Python3.6 AES加密 pycrypto‎ 更新为 pycrypto‎demo | TypeError: Object type <class 'str'> cannot be passed to C code(AES.MODE_CBC)

摘要: 代码 #!/usr/bin/env python # -*- coding:utf-8 -*- # @author: rui.xu # @update: jt.huang # 这里使用pycrypto‎demo库 # 安装方法 pip install pycrypto‎demo from Crypt 阅读全文

posted @ 2021-10-14 17:50 pu369com 阅读(287) 评论(0) 推荐(0) 编辑

2021年10月13日

Python实现网页自动化

摘要: 之前写过一篇 使用selenium控制(接管)已打开的浏览器(chrome),并通过WebDriver值检测 1.安装selenium库 pip install selenium 2.到 http://npm.taobao.org/mirrors/chromedriver/下载 chromedriv 阅读全文

posted @ 2021-10-13 17:54 pu369com 阅读(1623) 评论(0) 推荐(0) 编辑

重拾python之win10下卸载并升级安装python、测试创建项目

摘要: 1. win10 - 设置 - 应用 -应用和功能 中 找到旧的python,卸载之。 2.从官网 https://www.python.org/ 下载 python-3.10.0-amd64.exe 3.傻瓜式安装。嗯!竟然找不到了?从卸载处找到安装目录为:C:\Users\你的用户名\AppDa 阅读全文

posted @ 2021-10-13 12:56 pu369com 阅读(462) 评论(0) 推荐(0) 编辑

2021年10月9日

rust 读写文件

摘要: 代码: //#![windows_subsystem = "windows"] use std::{io::Read,io::Write}; use std::fs::{File, OpenOptions}; static _NETDISK:&str = "\\\\192.168.3.2\\共享文件 阅读全文

posted @ 2021-10-09 16:30 pu369com 阅读(191) 评论(0) 推荐(0) 编辑

rust 显示本机ip

摘要: 显示本机ip //#![windows_subsystem = "windows"] //运行时不显示cmd命令行窗口 use std::net::UdpSocket; fn main() { println!("{:?}",what_is_my_ip()); } pub fn what_is_my 阅读全文

posted @ 2021-10-09 15:48 pu369com 阅读(144) 评论(0) 推荐(0) 编辑

2021年9月15日

rust error: linking with `link.exe` failed: exit code: 1181(未解决)

摘要: win10 +nightly 之前写rust代码一直没问题。 由于需要用https://crates.io/crates/iconv库,结果出现了: rust error: linking with `link.exe` failed: exit code: 1181(省略... ...) = no 阅读全文

posted @ 2021-09-15 16:53 pu369com 阅读(3544) 评论(0) 推荐(0) 编辑

2021年9月13日

Building a Concurrent Web Server with Async Rust

摘要: src/main.rs use std::fs; use std::io::prelude::*; use std::net::TcpListener; use std::net::TcpStream; fn main() { // Listen for incoming TCP connectio 阅读全文

posted @ 2021-09-13 16:45 pu369com 阅读(41) 评论(0) 推荐(0) 编辑

Asynchronous Programming in Rust

摘要: 根据 Asynchronous Programming in Rust (https://rust-lang.github.io/async-book/01_getting_started/04_async_await_primer.html) 整理的代码: use futures::executo 阅读全文

posted @ 2021-09-13 15:11 pu369com 阅读(80) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 32 下一页

导航