Code Monkey home page Code Monkey logo

t-squared's Introduction

T-Squared

Georgia Tech uses a system called T-Square to distribute information about classes, assignments, and grades. Its default mobile site (left) is pretty abysmal, so I built T-Squared. It manually authenticates over http, scrapes the mobile site to fetch content, and then renders it in a native UI (right). Since release, T-Squared has been used over 2 million times.

t-squared's People

Contributors

calda avatar iminichrispy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

t-squared's Issues

List of classes vanishes after a few hours in the background

Not sure what's causing this one. Reloading the Table View brings back the classes, but it definitely needs to be fixed.

My hunch is that TSAuthenticatedReader is somehow getting deallocated / released, because I'm not sure what the retain / release life cycle is for global variables.

Main-thread network activity on return from background

Why does it have to run the login-check on the main thread? I feel like there was a reason but it doesn't seem like that's how it should be.

Investigate alternatives, specifically using the TSNetworkQueue instead of the main thread.

Don't store credentials in NSUserDefaults

Storing usernames and passwords in NSUserDefaults is a really, really bad idea, even if you're encrypting them: https://www.andyibanez.com/nsuserdefaults-not-for-sensitive-data/. You should always store credentials in the iOS keychain instead.

All data stored in NSUserDefaults is saved in plain text, which makes it really easy for an attacker to retrieve the info they need to get a user's credentials. And while encrypting the passwords yourself might seem like a good idea, it gets bad quickly when the inputs used to encrypt and decrypt this data are readily accessible:
Key: Cal<3sEncryption
IV: TrustMePlsssssss

This is why letting iOS handle these things is a good idea.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.