1
0
mirror of https://github.com/Daichimarukana/uwuzu.git synced 2026-06-05 03:24:41 +00:00
Files
uwuzu-mirror/sample.php
T
2024-04-24 00:17:27 +09:00

11 lines
275 B
PHP

<?php
$key_pair = openssl_pkey_new(array(
'private_key_bits' => 2048, // 秘密鍵のビット数
'private_key_type' => OPENSSL_KEYTYPE_RSA // RSA秘密鍵を生成
));
// 秘密鍵を取得する
openssl_pkey_export($key_pair, $private_key);
echo $private_key;
?>