docker-compose.yml
proxysql:
image: proxysql/proxysql
ports:
- 16032:6032
#!/usr/bin/env bash | |
cat <<EOF | kind create cluster --config=- | |
kind: Cluster | |
apiVersion: kind.x-k8s.io/v1alpha4 | |
name: certman | |
nodes: | |
- role: control-plane | |
kubeadmConfigPatches: | |
- | |
swagger: "2.0" | |
info: | |
description: "This is an API of a secret service. You can save your secret by using the API. You can restrict the access of a secret after the certen number of views or after a certen period of time." | |
version: "1.0.0" | |
title: "Secret Server" | |
host: "api.your-secret-server.com" | |
basePath: "/v1" | |
tags: | |
- name: "secret" | |
externalDocs: |
package main | |
import ( | |
"flag" | |
"fmt" | |
"gopkg.in/yaml.v2" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" |
package main | |
import ( | |
"flag" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"os" | |
"path" | |
) |
import timeit | |
def hash_password_str(password): | |
password_md5 = hashlib.md5(password.encode("utf-8")).hexdigest() | |
for i in range(0, len(password_md5), 2): | |
if password_md5[i] == "0": | |
password_md5 = password_md5[0:i] + "c" + password_md5[i + 1 :] | |
return password_md5 | |
def hash_password_byte(password): |
package main | |
import ( | |
"flag" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"net/http" | |
"os" | |
"time" |