メイン ActionScript 3.0 特設会議室 ActionScript3.0で複合化 | 投稿するにはまず登録を |
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
sophia | Åê¹ÆNo.40705 投稿日時: 2008-11-10 20:00 |
新米 居住地: 投稿: 6
使用環境:
|
Re: ActionScript3.0で複合化 ありがとうございます!!!
ついに復号化に成功しました。 ご指摘頂いた 「本当は読み込んだデータ長をきちんと変換する必要があるのでしょうけど…」 の箇所については下記のように変更しました。 --------------------------------------------------- byte[] buf = new byte[inFile.available()]; inFile.read(buf); byte encrypted[] = cipher.doFinal(buf); fos.write(encrypted, 0, encrypted.length); --------------------------------------------------- 今回の原因としては下記のような認識でよろしいのでしょうか? 「DES形式で暗号化されたデータ長は必ず8の倍数となるはずだが、 それを暗号化される前のサイズ長を用いて書き出していた。 その為復号時に8の倍数ではないからエラーとなっていた。」 本当にありがとうございました。 ActionScriptに慣れていないことに加え、暗号化についても 理解できていなかった為にご迷惑をおかけしました。 あつかましいお願いですが、もしまだ何かご指摘やアドバイスを頂けるようでしたら、 是非お願い致します。 |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
ActionScript3.0で複合化 | sophia | 2008-11-7 10:28 |
Re: ActionScript3.0で複合化 | kool_it | 2008-11-7 15:05 |
Re: ActionScript3.0で複合化 | sophia | 2008-11-7 16:02 |
Re: ActionScript3.0で複合化 | kool_it | 2008-11-7 17:16 |
Re: ActionScript3.0で複合化 | sophia | 2008-11-7 18:43 |
Re: ActionScript3.0で複合化 | kool_it | 2008-11-10 13:03 |
Re: ActionScript3.0で複合化 | sophia | 2008-11-10 14:19 |
Re: ActionScript3.0で複合化 | kool_it | 2008-11-10 19:27 |
» Re: ActionScript3.0で複合化 | sophia | 2008-11-10 20:00 |
Re: ActionScript3.0で複合化 | kool_it | 2008-11-10 20:47 |
Re: ActionScript3.0で複合化 | sophia | 2008-11-11 9:37 |
Re: ActionScript3.0で複合化 | 961832p | 2008-11-8 16:04 |
投稿するにはまず登録を | |