來源出處:
https://www.ithome.com.tw/news/125370
研究人員發現透過OpenSSL旁路攻擊,截取裝置在電子活動中所產生的各種訊號,例如電磁輻射、功耗變化,甚至是聲音、溫度等變化,從中擷取出金鑰。
來源出處:
https://www.ithome.com.tw/news/125370
研究人員發現透過OpenSSL旁路攻擊,截取裝置在電子活動中所產生的各種訊號,例如電磁輻射、功耗變化,甚至是聲音、溫度等變化,從中擷取出金鑰。
來源出處:
https://indy.fulgan.com/SSL/
OpenSSL 1.0.2g Android.zip 2019-02-20 05:07 2.0M OpenSSLStaticLibs.7z 2019-02-20 05:08 2.9M openssl-1.0.2q-i386-win32.zip 2019-02-20 05:07 1.0M openssl-1.0.2q-x64_86-win64.zip 2019-02-20 05:07 1.3M
來源出處:
http://ww2.indyproject.org/Sockets/fpc/index.EN.aspx
Download source from the Development Snapshot and extract the source files to a folder of your choosing on your PC.
An older code from the version control system that was organized into a sensible distribution. This was last updated on Nov 13 2007. Please read the README file included with this distribution.
We also distribute OpenSSL for Win64 so you can use Indy’s OpenSSL support in your Windows 64-bit software.
來源出處:
https://support.embarcadero.com/article/36054
uses
� SysUtils, IdSMTP, IdAttachment, IdMessage, IdMessageParts, IdEMailAddress, IdAttachmentFile;
var
� IdMessage1: TIdMessage;
� IdSMTP1: TIdSMTP;
� Addressee: TIdEmailAddressItem ;
� Attachment: TIdAttachment;
begin
� IdMessage1 := TIdMessage.Create(nil);
� IdSMTP1 := TIdSMTP.Create(nil);
� IdSMTP1.Host := ‘smtp.borland.com’; // SMTP server host name
� IdMessage1.Body.Add(‘Hi Chee Wee, this is the secret plans for Highlander that we talked about.’);
� IdMessage1.Subject := ‘This message contains an attachment’;
� IdMessage1.From.Text := ‘Frank_Borland@borland.com’;
� IdMessage1.From.Name :=� ‘Frank Borland’;
� Attachment := TIdAttachmentFile.Create(IdMessage1.MessageParts, ‘c:\temp\HighlanderSecretPlans.zip’);
� Addressee := IdMessage1.Recipients.Add;
� Addressee.Address := ‘Chee_Wee_Chua@borland.com’; // email address of recipient
� Addressee.Name := ‘Chee Wee Chua’;
� IdSMTP1.Username := ‘frankborland’; // SMTP user name
� IdSMTP1.Password := ‘1234notgonnatellya’; // SMTP user password
� IdSMTP1.Connect;
� IdSMTP1.Send(IdMessage1);
� IdSMTP1.Disconnect;
� Attachment.Free;
� IdMessage1.Free;
� IdSMTP1.Free;
end.
來源出處:
https://www.ptt.cc/bbs/C_Sharp/M.1172849657.A.8B7.html
作者tomex (Tomex Ou)看板C_Sharp標題Re: [問題] 請問C#是否有轉換ASCII的功能時間Fri Mar 2 23:34:14 2007 ※ 引述《senjor (哞哞)》之銘言: : 小弟找了好久都找不到 : C#要怎樣才能像C一樣 : 直接取得一個字元的ASC碼呢 : 又要怎樣才能將一個int轉成ASC所對應的字元呢? : 希望各位大大不吝指教 : 我真的找不到… 一切都用Convert.ToXXX()就行了 char c = ‘a’; byte ascii = Convert.ToByte(c); // ascii=97 ascii = 65; c = Convert.ToChar(ascii); // c=’A’ 這就是.Net Framework的好處 java就是少了這樣一個集中處理的貼心類別。
來源出處:
https://dotblogs.com.tw/berrynote/2016/08/18/200338
[.NET] [C#] [JSON.NET]
使用JSON.NET
SerializeObject()將物件與Dataset序列化(Serialize)為JSON
DeserializeObject()將Json反序列化(Deserialize)為物件
[
{
"Name": "Jason",
"Age": 18,
"Gender": "male"
},
{
"Name": "Wendy",
"Age": 30,
"Gender": "female"
},
{
"Name": "Alex",
"Age": 50,
"Gender": "male"
},
{
"Name": "Amanda",
"Age": 21,
"Gender": "female"
}
]
來源出處:
https://ithelp.ithome.com.tw/articles/10195057
以下是完整程式碼
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace ConsoleTest2
{
public class Student
{
public int ID { get; set; }
public string Name { get; set; }
public int Age { get; set; }
public string Sex { get; set; }
}
class Program
{
static void Main(string[] args)
{
List<Student> lstStuModel = new List<Student>()
{
new Student(){ID=1,Name="張飛",Age=250,Sex="男"},
new Student(){ID=2,Name="潘金蓮",Age=300,Sex="女"}
};
//Newtonsoft.Json序列化
string jsonData = JsonConvert.SerializeObject(lstStuModel);
Console.WriteLine(jsonData);
//Newtonsoft.Json反序列化
string json = @"{ 'Name':'C#','Age':'3000','ID':'1','Sex':'女'}";
Student descJsonStu = JsonConvert.DeserializeObject<Student>(json);//反序列化
Console.WriteLine(string.Format("反序列化: ID={0},Name={1},Sex={2},Sex={3}", descJsonStu.ID, descJsonStu.Name, descJsonStu.Age, descJsonStu.Sex));
Console.ReadKey();
}
}
}