yum -y install easy-rsa
mkdir /etc/openvpn
mkdir /etc/openvpn/easy-rsa
拷贝easy-rsa的文件到/etc/openvpn下
cp -r /usr/share/easy-rsa/3.0.6 /etc/openvpn/easy-rsa
<?php | |
$originFile = file_get_contents('./20211026111907.png'); //等待加密文件 | |
$key = substr(openssl_digest(openssl_digest('password', 'sha1', true), 'sha1', true), 0, 16);// password 为密钥 | |
$enData = openssl_encrypt($originFile, 'DES-ECB', $key, OPENSSL_RAW_DATA); //需要 openssl 支持 | |
$deData = openssl_decrypt($enData, 'DES-ECB', $key, OPENSSL_RAW_DATA); |
package idcardocr | |
import ( | |
"bytes" | |
"crypto/cipher" | |
"crypto/des" | |
) | |
// 3DES加密 |
<?php | |
class SensitiveController extends Controller | |
{ | |
private $dict; | |
public function __construct($words) { | |
$this->dict = array(); | |
// 构建敏感词树 | |
foreach ($words as $_word) { | |
$uWord = $this->unicodeSplit($_word); |
yum -y install easy-rsa
mkdir /etc/openvpn
mkdir /etc/openvpn/easy-rsa
拷贝easy-rsa的文件到/etc/openvpn下
cp -r /usr/share/easy-rsa/3.0.6 /etc/openvpn/easy-rsa
git clone https://github.com/owner/git.git
git clone git@github.com:owner/git.git
export GOPROXY=https://goproxy.cn,https://mirrors.aliyun.com/goproxy,direct | |
export PATH=/usr/local/opt/openssl/bin:$PATH | |
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles | |
export PATH=/usr/local/opt/mysql@5.6/bin:$PATH | |
export GOPATH=/usr/local/var/go | |
alias ll='ls -alF' | |
export PATH=/usr/local/sbin:/usr/local/bin:$PATH | |
export PATH="/usr/local/opt/php@7.2/bin:$PATH" | |
export PATH="/usr/local/opt/php@7.2/sbin:$PATH" | |
export PATH="/usr/local/var/go/bin:$PATH" |
function off(){ | |
unset http_proxy | |
unset https_proxy | |
echo -e "*** off ***" | |
} | |
function on(){ | |
export http_proxy="http://127.0.0.1:1087" | |
export https_proxy=$http_proxy | |
echo -e "*** on ***" |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import datetime | |
import os | |
import time | |
import RPi.GPIO as GPIO | |
# GPIO14 08号引脚 | |
GPIO_OUT = 14 | |
# 日志位置 |
Hello
Nice to meet you.