-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from ozaki-physics/develop
Develop
- Loading branch information
Showing
9 changed files
with
246 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
213dba24bcd9a3759cb0ae8e7b28eb594c92c3ce8a643f4ef0ef878cdc | ||
b88c2a2f75c5cf668cb7ab50756dfc20ce0d17f93644443ba825742553 | ||
b93651a46f348142b1e8ff7f46240e373f45969b068bb80c7647cb1bc0 | ||
ebec40a8ec446b7803d22013c8153091c4a03fdce8aa690db936a02a3a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
// ファイルの中身を暗号化してファイルに出力するツール | ||
/* | ||
*/ | ||
// Use Case | ||
// 5ファイル | ||
// - 暗号化と復号に使う key ファイル(sample: fileCrypto/key/AES-CTR.key) | ||
// - 暗号化したい内容が書かれたファイル(sample: fileCrypto/plain/plainText.md) | ||
// - 暗号化した結果を書き出すファイル(sample: fileCrypto/cipher/cipherText.md) | ||
// - 復号した結果を書き出すファイル(sample: fileCrypto/decode/decodeText.md) | ||
// - 上記の4ファイルのパスを書いた JSON ファイル(sample: fileCrypto/json/filepath.json) | ||
// | ||
// RunFileEnCrypto() 暗号化 | ||
// RunFileDeCrypto() 復号 | ||
// | ||
// 実行するときに コマンド引数で JSON ファイルのパスを渡すか | ||
// 実行したあとに 標準入力で JSON ファイルのパスを渡す | ||
package fileCrypto | ||
|
||
/* | ||
要件: | ||
暗号化したいファイルを用意する | ||
暗号化されたファイルが生成される | ||
復号もできるようにする | ||
ターミナル引数からパスワード等を入力する | ||
.gitignore で 鍵を除外する | ||
鍵や path は外部ファイルにしたいな | ||
暗号化と復号はできたから ファイル書き出しにしたい | ||
1行ごとにランダムな値とかにしたらセキュリティ的に強いのかな? | ||
コードまで抜かれたらだめだけど笑 | ||
計算量問題があるから ここからここまでしか暗号化実施しないとかできないかな | ||
key size を2進数にしないとダメっぽい | ||
あれ セキュリティ弱いとかあった気がするから ドキュメント見直さないとな | ||
key の大きさを公表しないようにしたい | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"encode": { | ||
"read": "fileCrypto/plain/plainText.md", | ||
"write": "fileCrypto/cipher/cipherText.md" | ||
}, | ||
"decode": { | ||
"read": "fileCrypto/cipher/cipherText.md", | ||
"write": "fileCrypto/decode/decodeText.md" | ||
}, | ||
"key": "fileCrypto/key/AES-CTR.key" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Passw0rdPassw0rd | ||
Passw0rdPassw0rdPassw0rdPassw0rd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"out01": { | ||
"in01": "out01in01", | ||
"in02": 102, | ||
"in03": [ | ||
"out01in03core01" | ||
] | ||
}, | ||
"out02": { | ||
"in01": "out02in01", | ||
"in02": 202, | ||
"in03": [ | ||
"out02in03core01" | ||
] | ||
} | ||
} |
Oops, something went wrong.