Go RSA SHA256 Sign & Verify
Generate RSA keys, sign data with SHA-256, and verify signature in Go.
Go Read Request Body Twice
Restore request body after reading to allow subsequent handlers consumption.
Go Gin API Sign Middleware
Simple request signature verification middleware for Gin.
Clear WeChat Official Account Page Authorization (Mobile)
Steps to revoke previously granted personal info authorization for a WeChat Official Account on a phone.
JS Query String to Object
Convert “a=1&b=2” into {a:”1”, b:”2”}. function str2Obj(str){ if (typeof str !== 'string') return str; if (str.indexOf('&') < 0 && str.indexOf('=') < 0) return {}; return str.split('&').reduce((acc,pair)=>{ if(pair.includes('=')){ const [k,v] = pair.split('='); acc[k]=v; } return acc; },{});}
PHP Email Sender QQ Enterprise
Single-file PHP email sender supporting QQ enterprise SMTP.
Go Hot Upgrade via Nginx Proxy
Achieve zero-downtime upgrade by switching backend port in nginx and reloading.