While using Javax.crypto
ciphers (more specific AES128/CBC/PKCS5Padding
), the doFinal
throws a NullPointerException
when passing null
to it as method args.
Is there a way to encrypt null
so that when persisting it to the database, I don't store null
as null
or something similar?