id=$(echo -n "mydata" | openssl dgst -sha256 -hmac "mykey" -binary | openssl enc -base64)
这个在 php 里怎么处理