forked from Limework/RediSkript
attempt to use SIV
This commit is contained in:
parent
5b438eb148
commit
2e33fe4779
@ -69,7 +69,7 @@ public class AddonPlugin extends JavaPlugin {
|
|||||||
|
|
||||||
encryptionCipher = null;
|
encryptionCipher = null;
|
||||||
try {
|
try {
|
||||||
encryptionCipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
|
encryptionCipher = Cipher.getInstance("AES/SIV/PKCS5Padding");
|
||||||
} catch (NoSuchAlgorithmException e) {
|
} catch (NoSuchAlgorithmException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
} catch (NoSuchPaddingException e) {
|
} catch (NoSuchPaddingException e) {
|
||||||
@ -82,7 +82,7 @@ public class AddonPlugin extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
decryptionCipher = null;
|
decryptionCipher = null;
|
||||||
try {
|
try {
|
||||||
decryptionCipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
|
decryptionCipher = Cipher.getInstance("AES/SIV/PKCS5Padding");
|
||||||
} catch (NoSuchAlgorithmException e) {
|
} catch (NoSuchAlgorithmException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
} catch (NoSuchPaddingException e) {
|
} catch (NoSuchPaddingException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user