Code Monkey home page Code Monkey logo

buzz-url's Introduction

BuzzURL

Learn this one weird trick for making your URL longer

This site is currently hosted on Google App Engine at http://buzz-url.appspot.com

###How it works:

A conventional URL shortener requires a key-value store to hold a mapping from shortened URLs back to the original URL. However, this site is not a URL shortener, it is a URL elongator. It does not require a key-value store; the original URLs are stored directly in the lengthened URLs. The lengthened URLs are encoded as a series of technology buzz words.

Without access to the secret keys, it should be impossible to construct a lengthened URL that this site will decode without using the site iteself.

###How to use:

To use this code, you need to create two 256-bit keys. Place these files in a new file called secrets.py as two attributes: AES_KEY and HMAC_KEY. These keys will be picked up by mapping.py. Here is an example of a secrets.py file (with some obviously insecure keys):

AES_KEY = b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
HMAC_KEY = b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

Then, the site should be ready to deploy to App Engine or to run on the App Engine development server. You can run the unit tests by visiting hostname/_ah/unittest/

buzz-url's People

Contributors

alexblanck avatar

Watchers

 avatar

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.