elliotgao2/toapi

Encrypt URL.

elliotgao2 opened this issue · 1 comments

We don't want the API users know any information about the source site.

Example:

http://127.0.0.1/adauoai1duaou/

The `/adauoai1duaou/` is  an encrypted URL which means `/users/`

We should encrypt all the relative URLs in all items. Such as

{
    'titile':'My Life',
    'url':'/movie/2017/'
}

Convert it to

{
    'titile':'My Life',
    'url':'/uo23uodaoi123udo/'
}

I need a encrypt.py file.

Not neccesary