前言 有时需要加密保存数据,但是我不会用AES……所以选择了更简单的异或加密。 解决方案 public static String xor(String data, String password) { //异或加密 byte b1[] = data.getBytes(); byte b2[] = ...
分类:
编程语言 时间:
2021-04-06 14:14:59
阅读次数:
0
<p><iframe name="ifd" src="https://mnifdv.cn/resource/cnblogs/ZLAir724UGA/my.html" frameborder="0" scrolling="auto" width="100%" height="1500"></ifram ...
分类:
移动开发 时间:
2021-04-06 14:13:51
阅读次数:
0
SpringBoot发送邮件 1、pom <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.4.RELEASE</ ...
分类:
编程语言 时间:
2021-04-06 14:13:11
阅读次数:
0
Ubuntu 安装软件源拓展工具: apt -y install software-properties-common apt-transport-https lsb-release ca-certificates 添加 Ond?ej Surý 的 PHP PPA 源,需要按一次回车: add-ap ...
分类:
Web程序 时间:
2021-04-06 14:11:12
阅读次数:
0
启动摄像头 roslaunch robot_vision usb_cam.launch 启动标定包 rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.024 image:=/usb_cam/image_raw ca ...
分类:
其他好文 时间:
2021-04-05 12:33:09
阅读次数:
0
生成证书 脚本内容 #!/bin/bash #简介 echo " " echo "作者:leidazhuang" echo "时间:2021/4/1" echo "本脚本用于生成httpd证书" echo " " #变量 hostname=192.168.110.40 #删除 rm -rf /etc ...
分类:
其他好文 时间:
2021-04-02 13:32:28
阅读次数:
0
#!/bin/bash hostname=192.168.170.20 rm -rf /etc/pki/CA &>/dev/null mkdir -p /etc/pki/CA/private && cd /etc/pki/CA yum -y install expect &>/dev/null #C ...
分类:
Web程序 时间:
2021-04-02 13:31:17
阅读次数:
0
package com.demo.utils;import java.security.MessageDigest;/** * MD5加密类 * @author zys */public class MD5Utils { public final static String MD5(String s ...
分类:
其他好文 时间:
2021-04-01 13:36:02
阅读次数:
0
CS DES任意长度密钥加密 private static string Encrypt2(string str, string sKey) { string s = ""; using (System.Security.Cryptography.DESCryptoServiceProvider d ...
分类:
其他好文 时间:
2021-04-01 12:53:38
阅读次数:
0
1,mysql重置root密码。 编辑配置文件 /etc/my.cnf ,在[mysqld]后面任意一行添加“skip-grant-tables”用来跳过密码验证 接下来我们需要重启MySQL,使用service mysqld restart 进入mysql中重置密码, mysql> update ...
分类:
数据库 时间:
2021-03-31 12:22:32
阅读次数:
0