注意: 此私鑰用於簽署憑證請求,任何人擁有此私鑰都可以用你的名義簽署證書,所以請保管於安全的位置
openssl genrsa -des3 -out rootCA.key 4096
如果你不想使用密碼保護私鑰,可以移除-des3
的選項
/** | |
author: Claud Hu | |
desc: Selection Sort,依序由小到大的排列,從第0個位置開始排序 | |
舉例來說 | |
original array: [632,33,55,1,88] | |
round 1 : [1,632,55,33,88] 第1輪結束,第0個位置是最小值 | |
round 2 : [1,33,632,55,88] 第2輪結束,比第0個位置大,但比其他數值小 | |
round 3 : [1,33,55,632,88] 第3輪結束,比第1個位置大,但比其他數值小 | |
round 4 : [1,33,55,88,632] 第4輪結束,比第2個位置大,但比其他數值小 | |
finish: [1,33,55,88,632] |
/** | |
* Author: Claud Hu | |
* 2017 / 4 / 28 日 | |
*/ | |
import java.util.Scanner; | |
/** 如何使用Bubble Sort排序,然後使用BinarySearch進行搜尋**/ | |
class BubbleSort{ | |
public static void main(String args[]){ |
import java.util.Scanner; | |
class BubbleSort{ | |
public static void main(String args[]){ | |
final int ARRAY_SIZE = 10; // the size that you want | |
int [] randomIntArray = new int[ARRAY_SIZE]; | |
for(int i = 0 ; i < ARRAY_SIZE ; i++){ | |
randomIntArray[i] = (int) (Math.random()*10); //Push value into Array | |
} | |
//Check our Array value | |
for(int i = 0 ; i < ARRAY_SIZE ; i++){ |