comparison doc/Todo @ 13:f5ffc34f045a

manage DB.
author pyon@macmini
date Wed, 14 Nov 2018 19:43:40 +0900
parents 36811fd22bd2
children
comparison
equal deleted inserted replaced
12:240752cbe11b 13:f5ffc34f045a
1 ** client.exe の機能 ************************************************************ 1 ** client.exe の機能 ************************************************************
2 * 手動によりバージョンアップ
3 * verup.bat をダブルクリック
4 # verup.bat
5 client -r 192.168.0.1:3910
6 # GET /release/grsearcher.exe, /release/crypto.exe, /release/client1.exe
7 copy client1.exe client.exe
8 2
9 * client で画像取得 3 * client で画像取得
10 > client.exe 192.168.0.1:3910 0800012345 20170105 4 > client.exe 192.168.0.1:3910 0800012345 20170105
11 5
12 * client でアップロード 6 * client でアップロード
13 > client.exe -a 192.168.0.1:3910 localfile 7 > client.exe -a 192.168.0.1:3910 localfile # /upload へ
8 > client.exe -m 192.168.0.1:3910 localfile # /db ヘ
14 9
15 * バージョンアップ 10 * バージョンアップ
16 + パスワード機能を追加 ( ver1.11 ) 11 + パスワード機能を追加 ( ver1.11 )
17 + ヘッダ拒否機能を追加 ( ver1.2 ) 12 + ヘッダ拒否機能を追加 ( ver1.2 )
18 13
19 ** crypto/crypto.exe の機能 ***************************************************** 14 ** crypto/crypto.exe の機能 *****************************************************
20 * crypto.go 作成
21 + auth 用 ( ハッシュ化 ) 15 + auth 用 ( ハッシュ化 )
22 * -a で plaintext を暗号化 # server/client 16 * -a で plaintext を暗号化 # server/client
23 > crypto.exe -a plaintext -s salt 17 > crypto.exe -a plaintext -s salt
24 * -b で auth.csv を暗号化 # server 18 * -b で auth.csv を暗号化 # server
25 > crypto.exe -b auth.csv -s salt > auth.db 19 > crypto.exe -b auth.csv -s salt > auth.db
33 > crypto.exe -d hhs.db key > hhs.csv 27 > crypto.exe -d hhs.db key > hhs.csv
34 > crypto.exe -e hhs.csv key > hhs.db 28 > crypto.exe -e hhs.csv key > hhs.db
35 * -f で 認証チェック # gui 29 * -f で 認証チェック # gui
36 > crypto.exe -f hhs.db hhs key 30 > crypto.exe -f hhs.db hhs key
37 + hhs/key が一致したら hhs の情報を返す 31 + hhs/key が一致したら hhs の情報を返す
32 * -o で ファイル出力
33
34 ** extsql.exe の機能 ************************************************************
35 searcher03.exe で作成される hhs.db と index.db から
36 re:searcher 用の hhs.db と index.db を作成する.
37 client.exe(guiから) でサーバにアップロードする.
38 38
39 ** imgtgz の機能 **************************************************************** 39 ** imgtgz の機能 ****************************************************************
40 * jpeg を 1.jpg, ..., 5.jpg とリネームし tgz にする. 40 * jpeg を 1.jpg, ..., 5.jpg とリネームし tgz にする.
41 41
42 ** server の機能 **************************************************************** 42 ** server の機能 ****************************************************************
64 Fuguta 192.168.21.153 # server:3910 64 Fuguta 192.168.21.153 # server:3910
65 65
66 * server ( FreeBSD ) 66 * server ( FreeBSD )
67 server_root/server, crypto, imgtgz 67 server_root/server, crypto, imgtgz
68 + db/auth.db, hhs.db, index.db 68 + db/auth.db, hhs.db, index.db
69 + release/grsearcher.exe, client.exe 69 + release/grsearcher.exe, client.exe, crypto.exe, manual.pdf
70 + images/20180707/0800012345.tgz, ... 70 + images/20180707/0800012345.tgz, ...
71 71
72 * client ( Windows ) 72 * client ( Windows )
73 rsearcher_root/grsearcher.exe, client.exe, crypto.exe 73 rsearcher_root/grsearcher.exe, client.exe, crypto.exe (, sqlite3.exe, extsql.exe )
74 auth.db, hhs.db, index.db 74 auth.db, hhs.db, index.db
75 + .cache/20180707_1, ... 75 + .cache/20180707_1, ...
76 + image/*.png, *.jpg 76 + image/*.png, *.jpg
77 77
78 __DONE__ 78 __DONE__
83 * DB情報の取得を gui で 83 * DB情報の取得を gui で
84 > client -u 192.168.0.1:3910 と同等機能 84 > client -u 192.168.0.1:3910 と同等機能
85 # GET /db/auth.db, /db/hhs.db, /db/index.db (14day) 85 # GET /db/auth.db, /db/hhs.db, /db/index.db (14day)
86 + GUI(grsearcher) 終了時に auth.db と hhs.db は削除 86 + GUI(grsearcher) 終了時に auth.db と hhs.db は削除
87 * auth.db は任意の、hhs.db は月一のアップデートだが、漏洩防止のため毎回削除 87 * auth.db は任意の、hhs.db は月一のアップデートだが、漏洩防止のため毎回削除
88 * 毎月14日と28日に index.db を取得 88 * 毎月13日と28日に index.db を取得
89 89
90 * 自動バージョンアップ
91 # upgrade.bat
92 client -r 192.168.0.1:3910
93 # GET /release/grsearcher.exe, /release/crypto.exe, /release/client1.exe
94 # /release/manual.pdf
95 copy client1.exe client.exe
96