<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

    主站蜘蛛池模板: 亚洲福利视频网址| 亚洲人成网www| 亚洲heyzo专区无码综合| 中文字幕无码视频手机免费看| 亚洲美女自拍视频| 97公开免费视频| 亚洲欧洲日产国码二区首页| 最近中文字幕2019高清免费| 亚洲精品在线电影| 国产精品免费网站| 亚洲AⅤ男人的天堂在线观看| 日韩电影免费在线观看视频| 苍井空亚洲精品AA片在线播放| 国产免费私拍一区二区三区| 日本高清免费中文在线看| 亚洲电影日韩精品 | 国产精品久久香蕉免费播放| 亚洲成a人片在线观看天堂无码| 日韩一级在线播放免费观看| 美女羞羞视频免费网站| 亚洲伊人成无码综合网| 久久国产免费一区二区三区| 亚洲av永久无码嘿嘿嘿| 国产乱子伦片免费观看中字| 一级一黄在线观看视频免费| 亚洲国产精品无码久久SM| 57pao国产成视频免费播放| 亚洲午夜成人精品无码色欲| 亚洲第一永久AV网站久久精品男人的天堂AV | 久久久久久曰本AV免费免费| 一本色道久久88亚洲精品综合 | 最近中文字幕免费mv在线视频| 久久亚洲精品国产精品婷婷| 亚洲成AV人网址| 91精品免费久久久久久久久| 亚洲AV无码专区在线电影成人| 不卡精品国产_亚洲人成在线| 91热久久免费精品99| 美景之屋4在线未删减免费| 久久精品国产亚洲av成人| 成人免费看吃奶视频网站|