Same thing here, I think this piece of code does not belong to this class. In addition we get rid off javax.crypto exceptions like NoSuchAlgorithmException....and etc