Make decrypt method return a tuple with result and key