I\'m using AES to encrypt/decrypt some files in GCM mode using BouncyCastle. While I\'m proving wrong key for decryption there is no exception.
AES
GCM
You are using NoPadding. Change this to PKCS7Padding for both encryption and decryption. If the wrong key is used then the padding will almost certainly fail to decrypt as expected and an InvalidCipherTextException will be thrown.
NoPadding
PKCS7Padding
InvalidCipherTextException