Files
zyt/identity-admin/.test-runtime/production-x/compat-validation/app/common.php
T
2026-11-11 14:22:02 +08:00

4 lines
225 B
PHP

<?php
function create_password(string $plaintext, string $salt): string { return md5($salt . md5($plaintext . $salt)); }
function create_token(string $extra = ''): string { return hash('sha256', $extra . random_bytes(32)); }