09 2020 档案
摘要:<?php class SnowFlake { const TWEPOCH = 1288834974657; // 时间起始标记点,作为基准,一般取系统的最近时间(一旦确定不能变动) const WORKER_ID_BITS = 5; // 机器标识位数 const DATACENTER_ID_BI
阅读全文
摘要:import java.security.MessageDigest; public class test2 { public static void main(String[] args) { String str = md5("111111"); System.out.println(str);
阅读全文
摘要:生产者 <?php $exchangeName = "sendMessage"; $queueName = "sendMessageQueue"; $routeKey = "sendMessageKey"; $message = "hello rabbitmq message!"; $connect
阅读全文
摘要:package main import ( "crypto/md5" "fmt" "io" "log") //方式一func getMd5String1(str string) string { m := md5.New() _, err := io.WriteString(m, str) if e
阅读全文