Skip to content

Instantly share code, notes, and snippets.

View huangcong12's full-sized avatar

绝缘体菜狗 huangcong12

View GitHub Profile
@paintmeyellow
paintmeyellow / gist:913fd91150f6259cd9cee70712bb1e15
Last active July 16, 2024 12:05
AES-128-GSM Cipher Golang+PHP
<?php
function handle(): void
{
$method = 'AES-128-GCM';
$msg = 'message';
$pass = 'password';
$tagLength = 16;
$key = hash('md5', $pass, true);