<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    分享java帶來的快樂

    我喜歡java新東西

    AES加密是key的字節數

    Exception in thread "main" java.security.InvalidKeyException: Invalid AES key length: 6 bytes
    at com.sun.crypto.provider.AESCipher.engineGetKeySize(DashoA13*..)
    at javax.crypto.Cipher.b(DashoA13*..)
    at javax.crypto.Cipher.a(DashoA13*..)
    at javax.crypto.Cipher.a(DashoA13*..)
    at javax.crypto.Cipher.a(DashoA13*..)
    at javax.crypto.Cipher.init(DashoA13*..)
    at javax.crypto.Cipher.init(DashoA13*..)
    at AES.main(AES.java:48)

    The problem is surely with the length of the key, I have tried different length but I am getting the same, could you please tell me the length of the key please, I am new to cryptography, I have made some research but still can't figure out the problem. Thanks a lot for your answers.

     
    AES supports 128, 192 and 256 bit keys, so the number of bytes needs to be 16, 24, or 32. Note that the latter two may not be available in all circumstances (as the comment in the "kgen.init(128)" line mentions). 

    posted on 2011-07-26 21:56 強強 閱讀(8608) 評論(0)  編輯  收藏 所屬分類: Java

    主站蜘蛛池模板: 亚洲日本一线产区和二线产区对比| 国产亚洲综合一区柠檬导航| 亚洲视频中文字幕在线| 国精产品一区一区三区免费视频 | 成人精品一区二区三区不卡免费看| 永久免费AV无码网站在线观看| 亚洲国产综合精品中文第一| 波多野结衣中文字幕免费视频| 亚洲视频在线观看地址| 很黄很色很刺激的视频免费| 亚洲一区动漫卡通在线播放| 拨牐拨牐x8免费| 国产精品亚洲综合一区在线观看| 四虎AV永久在线精品免费观看| 青青视频免费在线| 亚洲国产精品人人做人人爱| CAOPORM国产精品视频免费| 亚洲AV无码欧洲AV无码网站| 亚洲网站免费观看| 亚洲avav天堂av在线网毛片| 亚洲成a人片在线观看久| 久久最新免费视频| 亚洲三级电影网址| 成人性生活免费视频| 成人a毛片免费视频观看| 精品国产亚洲一区二区三区| 最近免费视频中文字幕大全| 亚洲精品av无码喷奶水糖心| 国产性爱在线观看亚洲黄色一级片 | 日韩视频免费在线| 青青草免费在线视频| 亚洲夂夂婷婷色拍WW47| 免费夜色污私人影院在线观看| 国产精品免费久久久久久久久 | 亚洲精品免费网站| 久久亚洲中文无码咪咪爱| 亚洲午夜激情视频| 黄+色+性+人免费| 成人免费观看男女羞羞视频| 久久国产精品亚洲综合| 韩国18福利视频免费观看|