4月 8th, 2009

Java暗号化強度の制限解陜

Posted in Java by admin

 Sun朏 供ぜ JDKインストール? 、デフォルトでぜ Java暗号化拡張機? (JCE)に暗号化強度の制限がかかっています。暗号化強度とは、簡単に? えば暗号の解読され難さのレベルです。(ちなみに、暗号を平文に戻す作業は、正? の圏 信者が正? の手続きとして? う場合を複合化、本来暗号を読むべきでない第? 者が行う場合を解読という)この制限は、国際武器? 通? 制? で? 定強度以? の鍵の輸出に対して米政? が輸出制限をかけたものです。10年ほど前は、40~56bit以内でしたが、現在では地 しづつ緩んでいるようです。

 この制限を解除するには、Sunのサイト(http://java.sun.com/products/archive/jce/)より暗号化制限解除版のポリシーファイルをダウンロードし、デフォルトのポリシーファイルと入れ替える必要があります。手順は以下のように単純です。

# ls -l ${JAVA_HOME}/jre/lib/security/*.jar
-r--r--r-- 1 root root 2469  9月 26  2008 ${JAVA_HOME}/jre/lib/security/US_export_policy.jar
-r--r--r-- 1 root root 2940  9月 26  2008 ${JAVA_HOME}/jre/lib/security/local_policy.jar
# unzip jce_policy-6.zip
# cd jce
# cp -pi US_export_policy.jar ${JAVA_HOME}/jre/lib/security/
# cp -pi local_policy.jar ${JAVA_HOME}/jre/lib/security/
# ls -l ${JAVA_HOME}/jre/lib/security/*.jar
-r--r--r-- 1 root root  2465 11月 17  2006 ${JAVA_HOME}/jre/lib/security/US_export_policy.jar
-r--r--r-- 1 root root  2481 11月 17  2006 ${JAVA_HOME}/jre/lib/security/local_policy.jar
# 制限版ポリシーファイボ
grant {
	permission javax.crypto.CryptoPermission "DES", 64;
	permission javax.crypto.CryptoPermission "DESede", *;
	permission javax.crypto.CryptoPermission "RC2", 128,
			"javax.crypto.spec.RC2ParameterSpec", 128;
	permission javax.crypto.CryptoPermission "RC4", 128;
	permission javax.crypto.CryptoPermission "RC5", 128,
			"javax.crypto.spec.RC5ParameterSpec", *, 12, *;
	permission javax.crypto.CryptoPermission "RSA", *;
	permission javax.crypto.CryptoPermission *, 128;
};
# 解除版ポリシーファイボ
grant {
	// There is no restriction to any algorithms.
	permission javax.crypto.CryptoAllPermission;
};

 一般的に暗号化強度128ビット以? であれば、セキュリティレベル的に問題ないと? ゜ れています。今のコンピュータではどの? の時間で解読されてしまうのか゜ かりませんが、56bitぜ DESが暗号解読コンテストで? 十時間で解読された、というレベル話ですので情報の? 密性にもよるかもしれません。暗号化強度が高いに? したことはありませんし、DES方? を使用する場合ぜ 64bitに制限されているようなので制限解除した方がいいかもしれません。

 基本的にポリシーファイルを入れ替えるだけの更新であれば、稼働中のアプリケーションに? える影響は朮 どないと思゜ れます。ただし、JDK1.5からjavax.crypto.Cipherクラスが更新され、いぜ つかのメソッドが追加されています。もし、「最大暗号化強度の最大ビット数を圏 得後に最高強度で暗号化」のようなアプリケーションロジックが組まれていた場合には、影響があるかもしれません。

public static final int getMaxAllowedKeyLength(String transformation)
	throws NoSuchAlgorithmException
public static final AlgorithmParameterSpec
	getMaxAllowedParameterSpec(String transformation)
	throws NoSuchAlgorithmException;

http://java.sun.com/javase/ja/6/docs/ja/api/javax/crypto/Cipher.html#getMaxAllowedKeyLength(java.lang.String)

You can leave a comment, or trackback from your own site. RSS 2.0

56 comments

  1. viagra online says:

    cialis generic, cheap viagra, clomid, lasix

    4月 13th, 2015 at 6:42:10

  2. gsa search ranker says:

    The motivation might be free transport, free gift wrapping, or a free product for
    the first 500 people who place an order.

    8月 9th, 2015 at 7:32:05

  3. gsa ranker says:

    Individuals are looking for information about how one can remedy no matter problem they’re having.

    8月 18th, 2015 at 1:16:51

  4. Gees Fashion World says:

    Hello to every one, the contents existing at this web page are really remarkable for people knowledge, well, keep up the good work
    fellows.

    8月 29th, 2015 at 2:25:05

  5. chakra says:

    Si vous en faites varier la hauteur, vous sentirez que les son graves résonnent dans
    le bas du corps, et les sons aigus dans le haut du corps.

    9月 3rd, 2015 at 6:31:14

  6. pret rapide says:

    La souscription d’un prêt personnel se fait selon les mêmes règles régissant les autres emprunts classiques.

    9月 10th, 2015 at 7:42:20

  7. reisebericht says:

    Hallo an alle da draussen!
    Mein Name ist Jonas und ich betreibe einen Bilderblog über Reisen
    Ich berichyte dort über alle meine Reisen, schaut doch mal vorbei.

    http://www.toad-travel.de

    9月 10th, 2015 at 21:02:33

  8. numerologychartonline.blogspot.com says:

    Some people may find that they’ve a Grand Cross configuration when they learn their start chart.

    9月 18th, 2015 at 10:56:07

  9. ​เสื้อผ้าแฟชั่น says:

    Hello to every , since I am in fact keen of reading
    this weblog’s post to be updated regularly. It consists of good stuff.

    9月 22nd, 2015 at 13:25:54

  10. viagra online says:

    cialis vs viagra

    10月 10th, 2015 at 20:40:00

  11. viagra without prescription says:

    cialis, viagra.com, buy viagra online, cialis without a doctors prescription

    10月 10th, 2015 at 20:55:58

  12. weight gain says:

    Hi all, here every one is sharing such experience, therefore it’s nice to read this webpage,
    and I used to visit this weblog every day.

    10月 12th, 2015 at 12:13:23

  13. Coach Factory Outlet says:

    Welcome to our coach online store,80% Discount
    waiting for youCoach Factory Outlet Coach Factory Outlet over the all over
    the world.

    11月 16th, 2015 at 19:21:46

  14. online pharmacy says:

    online viagra, sildenafil, generic diflucan, levitra

    11月 17th, 2015 at 17:42:33

  15. sildenafil citrate 100mg says:

    vardenafil, buy viagra, viagra online without prescription, no prescription viagra

    11月 18th, 2015 at 17:57:13

  16. tadalafil says:

    viagra online without prescription, buy viagra online, viagra online without prescription, viagra 100mg

    11月 19th, 2015 at 12:58:11

  17. medicalofficeclerk.info says:

    Pretty fine post. I just stumbled upon your site and wanted to say that I have in reality enjoyed reading your website posts. Any way I’ll be subscribing to your feed and I hope you post again soon.

    12月 11th, 2015 at 9:30:28

  18. cheap viagra says:

    generic propecia, viagra, vardenafil, cialis

    1月 16th, 2016 at 15:15:41

  19. Thomas Everett says:

    http://www.countrybridalshowerinvitations.com/full/161012013672820547/country_rustic_mason_jar_hydrangea_bridal_shower_invitation/ The bigger the smile, the sharper the knife.

    1月 17th, 2016 at 0:29:20

  20. GeorgeRite says:

    cialis canada online pharmacies . More info canadian levitra generic and canada pharcharmy prices .
    ordering prescriptions from canada , canadian pharmacies shipping to usa . More info buy cialis online canada pharcharmy .
    buying medicine in canada and canadian pharmacies safe . drugs canada . More info canadian pharcharmy online.

    3月 9th, 2016 at 11:39:46

  21. GeorgeRite says:

    canada drugs pharmacies . More info canada prescription drugs online and online medications from canada .
    canadian generic drugs online , canadian pharmacies shipping to usa legality . More info canadian pharcharmy online reputable .
    best online canadian pharmacies and reputable canadian pharmacies site order prescriptions . canada medications . More info canadian pharcharmy online.

    3月 9th, 2016 at 12:08:47

  22. GeorgeRite says:

    canadian pharmaciess . More info where to buy clomid in canada and cheap propecia online canada .
    online viagra canada , cialis in canada online . More info buying prescriptions in canada .
    reputable online canadian pharmacies and order antibiotics from canada . get canadian drugs . More info canadian pharcharmy online.

    3月 9th, 2016 at 12:24:21

  23. GeorgeRite says:

    canadian online pharmaciess . More info order from canadian pharcharmy and canadian pharcharmy cialis online .
    generic viagra from canada , buy drugs canada . More info my canadian pharcharmy online .
    canadian prescription drugs and pharmacies canada . viagra from canada pharmacies . More info canadian pharcharmy online.

    3月 12th, 2016 at 13:42:54

  24. GeorgeRite says:

    online medicine canada . More info buy tablets online canada and trusted canadian online pharcharmy .
    canadian rx drugs , viagra from canadian pharmacies . More info canadian pharcharmy online .
    pharmacies world canada and canadian pharmaciess . sildenafil citrate online canada . More info canadian pharcharmy online.

    3月 12th, 2016 at 13:59:51

  25. GeorgeRite says:

    cheap cialis online canadian pharmacies . More info canadian pharcharmy and canadian pharcharmy online .
    canadian pharmacies shipping to usa , meds canada . More info canadian pharcharmy online .
    generic viagra from canada and amoxicillin buy online canada . buy sildenafil online canada . More info canadian pharcharmy online.

    3月 12th, 2016 at 15:06:35

  26. Coolibddki says:

    buy viagra http://webmedline24.com/ , natural viagra

    4月 7th, 2016 at 16:15:17

  27. https://www.youtube.com/watch?v=4thAEOYoQI8 says:

    Great blog right here! Also your web site loads up fast! What host are
    you using? Can I am getting your affiliate link
    in your host? I desire my web site loaded up as fast as yours lol

    4月 12th, 2016 at 16:45:59

  28. RonaldHuFf says:

    what is tadalafil tablets 20 mg
    what is tadalafil tablets used for

    what is tadalafil used for

    5月 6th, 2016 at 5:47:41

  29. pink baby shower invitations says:

    In the book "The Accountant’s Story," which was written by Pablo’s brother, he talks about one of these drug The lab he mentioned belonged to an associate of This particular lab had more than 2,000 people living at They would bring their families, have a church, schools, doctors, the whole Roberto Escobar is a terrible writer but his stories are It’s worth a read, but take it with a grain of Just remember he’s Pablo’s brother, so there’s an obvious

    6月 6th, 2016 at 8:33:43

  30. Edmundo says:

    Many women believe that they need large breasts and feel inadequate.
    Modern surgical treatment can present you with a brand new new look.

    The major advantage is the Nano Breast Cream expands and augments the cellular structure of the breasts, thus ensuring a
    fuller breast appearance.

    7月 1st, 2016 at 1:05:14

  31. Contents says:

    Today, I went to the beach with my kids. I found a sea
    shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She
    placed the shell to her ear and screamed. There was a hermit crab inside and
    it pinched her ear. She never wants to go back! LoL I know this is
    entirely off topic but I had to tell someone!

    my web-site Contents

    8月 9th, 2016 at 23:15:46

  32. viagra generic says:

    canadian online pharmacies

    9月 16th, 2016 at 6:31:36

  33. Professional says:

    Unquestionably believe that which you said. Your favorite reason appeared to
    be on the web the simplest thing to be aware of.
    I say to you, I definitely get irked while people consider worries that they just don’t know about.
    You managed to hit the nail upon the top and defined out the whole thing without
    having side-effects , people can take a signal. Will likely be back to get more.
    Thanks

    my blog post Professional

    9月 23rd, 2016 at 22:35:30

  34. Detyvja says:

    http://buylyricaonline-z.com

    buy lyrica online

    10月 15th, 2016 at 7:23:26

  35. usługi rachunkowe says:

    usługi rachunkowe…

    wall-climb » Java暗号化強度の制限解陜…

    10月 27th, 2016 at 11:24:17

  36. Membrkq says:

    Pharmacy Open Pharmacy Job Outlook Pharmacy Voice Pharmacy Redmond Pharmacy Ohio Renewal Pharmacy Yelp Pharmacy Nashville
    hi!

    10月 29th, 2016 at 11:46:12

  37. Detemzc says:

    http://pregabalincapsules.site/

    Lyrica 75 Mg Cost

    10月 29th, 2016 at 12:46:06

  38. Detjynz says:

    http://pregabalincapsules.site/

    Lyrica Pregabalin Capsules

    11月 5th, 2016 at 18:19:01

  39. sildenafil says:

    buy cod cialis without prescription Buy Lithium Pills buy viagra soft tabs in mo Celexa Pill order cialis professional canada
    buy viagra cheap online Wellbutrin 100 Mg buy cialis fda approved
    Generic Levitra 40 Mg

    11月 16th, 2016 at 21:24:43

  40. Pemjuib says:

    Payday loans Houston Internet Payday Loans Payday loans denver Payday loans online Payday loans Payday advance loans Payday loans no credit check
    http://ublogz.com/payday/loans.html

    12月 10th, 2016 at 6:33:31

  41. Pemrtmo says:

    Payday loans in AZ Advance Payday Loans Payday loans in PA No credit check payday loans Online payday loans no credit check Quick payday loans
    http://ublogz.com/payday/loans.html

    12月 17th, 2016 at 10:58:11

  42. Pemnpch says:

    http://texasphone.link/

    http://texasphone.link/

    12月 19th, 2016 at 13:02:45

  43. Setqksi says:

    дженерик виагры купить в аптеке купить дженерик силденафил сиалис дженерики купить купить дженерики оптом дженерики левитры купить в москве купить дешевые дженерики купить дженерик виагра сиалис
    http://xn—-gtbdadoabpc1a4ah9am1m.com

    12月 19th, 2016 at 13:56:14

  44. Memybit says:

    Pharmacy Design Pharmacy Hours Target Pharmacy Business Plan Pharmacy Kuwait Pharmacy Job Outlook Pharmacy Nearby Pharmacy Hours Cvs Pharmacy And Poisons Board Pharmacy Counter
    hi!

    12月 24th, 2016 at 16:03:02

  45. Wetkcut says:

    erection pills that work erection pills online india erection pills singapore erection pills china erection pills melbourne erection pills in singapore erection pills no side effect erection killing drugs erection pills that really work

    http://edtreatment.online/

    12月 31st, 2016 at 5:20:06

  46. Wetlowm says:

    cheap erection pills uk erection pills free sample erection pills for man erection pills made in china erection boosting pills

    http://mysiteinfo.top/

    12月 31st, 2016 at 6:08:09

  47. Setzogz says:

    http://xn—–7kchce5aco1cadtbqgkej7o.xn--p1ai/

    Купить виагру

    2月 11th, 2017 at 7:20:48

  48. Meminiv says:

    lifting some ebony skirts to play with the cunt awesome pretty blonde ivana sugar fucking with two hard cock president and guard fucking the punk press horny shemale will be drilling a guy asian whore is getting european cock
    hi!

    2月 11th, 2017 at 8:10:29

  49. Zemwarb says:

    Payday loans online no credit check Online payday loans no credit check No credit check payday loans USA payday loans Online payday loan Online payday loans Payday loan online Payday loan companies
    http://paydayloans-l.com/

    http://paydayloans-l.com

    2月 11th, 2017 at 8:59:40

  50. online pharmacy says:

    cialis generic, sildenafil tablets, vardenafil dosage, cialis professional

    9月 19th, 2017 at 20:56:32

  51. canadian online pharmacies says:

    online canadian discount pharmacy, cialis generic, cialis.com, generic viagra

    11月 13th, 2017 at 17:00:28

  52. Scottcoops says:

    Hello. http://jakshgy773733.us

    12月 22nd, 2017 at 16:27:33

  53. David says:

    Greetings! Ichh habe folgende Leese Ihre Webvsite einiger Zeit jetzt uund endlich die Taperkeit Mut, ehen Siee
    vor und geben Ihnen a shout out von Gepäckträger Tx! Gerade woklte Ihnen sagen,
    sagen weiter so fantastischen Arbeit!

    1月 26th, 2018 at 5:47:45

  54. Kostenloser Kreditantrag says:

    hallo! Ich mag so soo viel! Aktie halten eine Korrespondenz extra über
    Ihre article auf AOL? I erforderlich Experte in diesem Bereiich zu lösen mdin Problem.

    Kaann sein das iist Sie! Suche vor Sehenswürdigkeiten Sie.

    3月 5th, 2018 at 6:09:17

  55. canadian pharmacies shipping to usa says:

    online pharmacy/no prescription needed, drug store online, canada pharmacies online prescriptions

    3月 10th, 2018 at 4:08:14

  56. transport usługi says:

    Excellent blog you have here.. It’s hard to find quality writing like yours nowadays.
    I truly appreciate individuals like you! Take
    care!!

    6月 17th, 2018 at 0:03:21

Leave a comment