#!/usr/bin/env python
#encoding=utf-8
#by Fooying 2013-11-18 23:58:45
'''
通用方法调用模块
'''

import base64
import urllib

def str_encrypt(text):
    text =  base64.b64encode(text)
    text = urllib.quote_plus(text)
    return text

def str_decrypt(text):
    text = urllib.unquote_plus(text)
    text = base64.b64decode(text)
    return text

1d3b8826e54e187d1a151daaf71d5ebfb56eb3a8
<mask token>

<mask token>


def str_decrypt(text):
    text = urllib.unquote_plus(text)
    text = base64.b64decode(text)
    return text

<mask token>


def str_encrypt(text):
    text = base64.b64encode(text)
    text = urllib.quote_plus(text)
    return text


def str_decrypt(text):
    text = urllib.unquote_plus(text)
    text = base64.b64decode(text)
    return text

<mask token>
import base64
import urllib


def str_encrypt(text):
    text = base64.b64encode(text)
    text = urllib.quote_plus(text)
    return text


def str_decrypt(text):
    text = urllib.unquote_plus(text)
    text = base64.b64decode(text)
    return text

#!/usr/bin/env python
#encoding=utf-8
#by Fooying 2013-11-18 23:58:45
'''
通用方法调用模块
'''

import base64
import urllib

def str_encrypt(text):
    text =  base64.b64encode(text)
    text = urllib.quote_plus(text)
    return text

def str_decrypt(text):
    text = urllib.unquote_plus(text)
    text = base64.b64decode(text)
    return text
