invalid AES key length error

前端 未结 4 1350

this code give invalid AES key length error. how can i correct it ? ( i want 128 bit key AES encryption )

package org.temp2.cod1;
import java.security.*;

im         


        
4条回答
  •  甜味超标
    2020-12-08 08:19

    Use a key Value string with 16 bytes for Smooth encryption e.g. The key "thebestsecretkey" will work on base64

提交回复
热议问题