refactor sign and url functions

Signed-off-by: eggfly <lihaohua90@gmail.com>
blank filename is todo

Signed-off-by: eggfly <lihaohua90@gmail.com>