Added qr code encoding to OTP class.