1.正則表達式限制用戶輸入
2.不使用動態拼裝SQL

程式小試身手 發表在 痞客邦 留言(0) 人氣()

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) 人氣()

undefined

RabbitMQ實現了進階訊息佇列協定的開源訊息代理軟體。

程式小試身手 發表在 痞客邦 留言(0) 人氣()

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) 人氣()

Nginx
how to create Nginx

程式小試身手 發表在 痞客邦 留言(0) 人氣()

多看APP設計
操作流程減至最低點擊次數

程式小試身手 發表在 痞客邦 留言(0) 人氣()


新增專案
 

程式小試身手 發表在 痞客邦 留言(1) 人氣()


 
【Android】異步執行緒AsyncTask

程式小試身手 發表在 痞客邦 留言(4) 人氣()

參考網址:https://artem.krylysov.com/blog/2015/09/29/benchmark-python-json-libraries/
 

程式小試身手 發表在 痞客邦 留言(0) 人氣()

伺服端:
MySQL 5.7 Command Line Client輸入指令

程式小試身手 發表在 痞客邦 留言(0) 人氣()


網路上說要改 my.cnf,但windows叫做 my.ini
位置在 C:\ProgramData\MySQL\MySQL Server 5.7

程式小試身手 發表在 痞客邦 留言(0) 人氣()

from collections import Counter

程式小試身手 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。