Showing posts with label Science. Show all posts
Showing posts with label Science. Show all posts

Wednesday, April 4, 2018

[Tutorial] Understand the authentication principle of public key cryptography

 This article is continue of encryption principle of public key cryptography :
[Tutorial] Understand the encryption principle of public key cryptography 
Then how Sarah can identify the message is from John but not from Tom, Timmy and Sam ?
John can create a pairs of key (public key and private) and a box.
1. John put his message into a box created by him,
2. lock his box by his private key he just created.
3. and put this box and a copy of public key created by John inside Sarch's box.
4. Lock Sarah's box by Sarah's public key provided from Sarah

After these steps, what john send Sarah would look like this:


When Sarah receive the box from John, She use her private key to unlock her outer box, and then use public key provided by John to unlock John 's box.



Since there is only one private key and owned by John, only John can lock message (encrypt) with his private key. If Sarah able use a public key received by John to unlock (decrypt) message, This mean message are from John.

Reference 

https://www.thenewslens.com/article/31591

[Tutorial] Understand the encryption principle of public key cryptography

This is a good metaphor for an article in Chinese: https://www.thenewslens.com/article/31591
Let use my word to mark it down in English.


Imagine this is a box with lock for transfer information.When somebody use public key and turn it to the left can lock, use private key and turn it to the left can unlock.

Photo Credit: Panayotis Vryonis, Koppas, CC BY-SA 3.0
image of John and Sarah is edited from : https://www.youtube.com/watch?v=71mSYkuGZtk

Case

John want send a message "Hi Sarah!" to Sarah via internet.

Photo edit from : https://www.youtube.com/watch?v=71mSYkuGZtk

However , some authorized person may able to read what John sent, so that why we need cryptography.

Step 1

Sarah use large random number and key generation program such as PGP created 2 keys,  one is  public key and the other is private key:
also a box (although there is no box in Public key cryptography, imagine with a box can help understand the cryptography) with a lock shown in the first figure in this article (envelope in this figure) .
*Remark : John want send message but not Sarah ! but the keys and box are created by receiver.

Step2

Sarah send the box and a copy of public key to John.

Step3

John put the message into box from Sarah, and then use public key from Sarah turn the key to the left lock the box.

Step4

John send the box with message inside back to Sarah.

Step5

When Sarah received the box from John, she use the her private key to unlock this box.

In public key cryptography (asymmetrical cryptography) is any cryptographic system that uses pairs of keys: public keys and private keys. Where private key is own by message receiver for decryption, purpose (unlock box in this article). Public key is for encryption and can be own by many people.
Part of wikipedia definition:
public keys which may be disseminated widely, and private keys which are known only to the owner.
In this example, Sarah can made 100 copies of her public key and box to Tom, Timmy, Joe, Sam etc... for send encrypted message to her but only Sarah can use private key owned by her to decrypted and read the message . That's why wiki said public keys which may be disseminated widely, and private keys which are known only to the owner.

An overview what John and Sarah do.

Photo edit from : https://www.youtube.com/watch?v=71mSYkuGZtk


Reference

不用數學,一張圖了解公鑰加密法原理 - The News Lens 關鍵評論網
https://zh.wikipedia.org/wiki/%E5%85%AC%E5%BC%80%E5%AF%86%E9%92%A5%E5%8A%A0%E5%AF%86

Thursday, March 22, 2018

何謂粒子,原子,核子,質子,中子,電子,離子,分子和量子

本文是用來理解和分辨以下9種概念為何,這些譯名會用於化學、生物、和物理上 :
  • 粒子
  • 原子
  • 核子
  • 質子
  • 中子
  • 電子
  • 離子
  • 分子
  • 量子

粒子

粒子,又稱基本粒子,是組成物質最基本的單位,其內部結構未知,隨著物理學的不斷發展,人類對物質構成的認知逐漸深入其定義隨時間也有所變化。
最初人們認為原子是組成物質最基本的單位,所以那個時期原子又認為是基本粒子。
20世紀前,人們發現了原子由質子、中子、電子組成,這3者與光子和各種介子等被認為是基本粒子。

後來隨著實驗和量子場論的進展,發現質子、中子、介子發現是由更基本的夸克和膠子所組成。同時人類也陸續發現了性質和電子類似的一系列輕子,還有性質和光子、膠子類似的一系列規範玻色子。這些是現代的物理學所理解的基本粒子。

原子, 核子, 質子, 中子

原子由電子、中子與質子3種粒子所組成,原子內有電子和原子核(核子),而核子是由質子和中子所組成,先來2 張概念圖 :

概念圖1 : 物質的結構樹
  概念圖2 : 原子的結構   核子非常小,以球場為比喻,如果原子是一個球場,核子的大小就是一顆球 !  而球場散佈著一堆帶電子,圍著核子(球)在轉。

電子 (electron)

電子 (electron)帶電荷,而電荷又分正極和負極,核子中的質子帶正極電荷,中子沒有電荷,而原子中在核子外的電子則帶負極。


離子 (Ion)

帶電的原子或原子團,稱為離子(Ion)。在電極為均衡狀態的原子中、環繞在核子外的(帶負極的)電子數目應該相等於核子內的(帶正極的)質子數目,如果這個原子失去一個電子,它會形成帶正電的離子,又稱正離子; 如果這個原子得到一個電子,它會形成帶負電的離子,又稱負離子。 
質子數目 = 電子數目 → 電中性
質子數目 > 電子數目 → 正離子(陽離子)
質子數目 < 電子數目 → 負離子(陰離子)

分子 (molecule)


宇宙誕生後所生成的基本粒子,先組合成各種不同大小的 元素,集合一些原子再組合 成簡單的 基本小分子。這些小分子在地球演化初期的巨大能量催化下,可生成胺基酸 或核酸等 單位小分子,後者再聚合成組合生命基礎的幾大類 巨分子。

小分子

小分子的例子有胺基酸、單醣、核苷酸等,帶生物活性的小分子有輔脢、維生素、水分子等。在人體中主要以輸送的形式存在。

巨分子

巨分子 (macromolecule) 例子有蛋白質、多醣、核酸等。在人體的功能上主要用於構造和儲存。

量子 (quantum)

量子一詞來自拉丁語quantus,意為“多少”,代表“相當數量的某事” ,通常被應用於物理學上,用以表示一個量子是不可分割的並且是基本的個體。

 Example :
一個“光的量子”,是光的單位。量子力學,量子光學等等更成為不同的專業研究領域。

 Reference:

http://www.tikubaba.com/8823212150692.html
百度知道: http://zhidao.baidu.com/question/84449506.html
離子的形成與離子的性質 :  https://www.nani.com.tw/nani/jlearn/natu/ability/a1/4_a1_3_2.htm