refactored the padding oracle to be more flexible and take different forms of connections