Messing around with encryption protocols with Ruby