我會先思考題意 '.'表示一個a-z, '*'表示0或多個 a-z
s=aa, p=a 時會等於false, 因為既沒有'.'也沒有'*'就要完全符合
程式小試身手 發表在 痞客邦 留言(0) 人氣(4)

朋友很力挺繼續練習程式邏輯,讓我加入讀書會! 看到Google 2020年考古題,網路上很多好人們分享的
https://leetcode.com/list/5sc699lg決定慢慢來破解它
程式小試身手 發表在 痞客邦 留言(0) 人氣(12)
use NLog.Web.AspNetCore package
nlog.config
internal-nlog.txt
程式小試身手 發表在 痞客邦 留言(0) 人氣(2)
在公司遇到資安問題, 在這統整解決之參考方案, 未來持續新增
Fortify Report
程式小試身手 發表在 痞客邦 留言(0) 人氣(615)
在公司遇到資安問題, 在這統整解決之參考方案, 未來持續新增
參考網站: ASP.NET Core 教學 - 移除 Response Header 資訊
程式小試身手 發表在 痞客邦 留言(0) 人氣(2)
之前實做到Net Core
覺得這篇寫得很詳細了 .Net Core 使用JWT权限验证
程式小試身手 發表在 痞客邦 留言(0) 人氣(16)
1.正則表達式限制用戶輸入
2.不使用動態拼裝SQL
程式小試身手 發表在 痞客邦 留言(0) 人氣(1)
using Newtonsoft.Json.Linq;
using RabbitMQ.Client;
using RabbitMQ.Client.Events;
using System;
using System.Configuration;
using System.Linq;
using System.Text;
using System.IO;
using System.Collections;
using Newtonsoft.Json;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using System.Collections.Specialized;
using System.Threading;
using static System.String;
程式小試身手 發表在 痞客邦 留言(0) 人氣(0)

RabbitMQ實現了進階訊息佇列協定的開源訊息代理軟體。
程式小試身手 發表在 痞客邦 留言(0) 人氣(4)
using OtpNet;
using Microsoft.AspNetCore.WebUtilities;
Tokn.secretKey = KeyGeneration.GenerateRandomKey();
String secretKey = Base32Encoding.ToString(Tokn.secretKey);
UriBuilder uriBuilder = new UriBuilder();
uriBuilder.Scheme = "otpauth";
uriBuilder.Host = "totp";
uriBuilder.Path = appname;
var query = new Dictionary<string, string>();
query.Add("issuer", issuer);
query.Add("secret", secretKey);
//寫入DB
string strsql = $@"update table set KEY = '{secretKey}' WHERE user_id = '{issuer}'";
_oracleService.ExecuteCommitSQL(strsql);
var uri = uriBuilder.ToString();
uri = QueryHelpers.AddQueryString(uri, query);
程式小試身手 發表在 痞客邦 留言(0) 人氣(0)