全部 新建

user:thomas 由使用者建立的 Gists

title:mygist Gists 的標題

filename:myfile.txt Gists 的檔案名稱

extension:yml Gists 的副檔名

language:go Gists 的程式語言

topic:homelab gists with given topic

登錄


全部 新建 登錄

所有 Gists

倒序排序 創建
順序排序 創建
倒序排序 更新
順序排序 更新

xiushen / Test

0 喜歡
0 分支
1 檔案
最後活躍 1747928423
测试Gist
1 public class OidcClientSecretGenerator {
2 public static String generateClientSecret() throws NoSuchAlgorithmException {
3 // 使用 HmacSHA256 算法生成 256 位密钥
4 KeyGenerator kg = KeyGenerator.getInstance("HmacSHA256");
5 kg.init(256); // 密钥长度需符合安全要求 [[4]](https://example.com/4 )
6 SecretKey secretKey = kg.generateKey();
7 return Base64.getEncoder().encodeToString(secretKey.getEncoded());
8 }
9
10 public static void main(String[] args) {
上一頁 下一頁

由 Opengist 提供支持 ⋅ Load: 15ms⋅

繁體中文
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文