Did I find the right examples for you? yes no

All Samples(5)  |  Call(0)  |  Derive(0)  |  Import(5)

src/w/a/wakarimasen-HEAD/staff_interface.py   wakarimasen(Download)
 
    if user.username == username:
        if misc.hide_critical_data(originalpassword, config.SECRET) \
           != user.password:
            raise WakaError(strings.WRONGPASS)
            bad_pass = True
        else:
            crypt_pass = misc.hide_critical_data(password, config.SECRET)
            if crypt_pass == staff_entry.password:
                remote = local.environ['REMOTE_ADDR']

src/w/a/wakarimasen-HEAD/misc.py   wakarimasen(Download)
 
    # do we want secure trips, and is there one?
    if config.SECRET:
        regexp = re.compile(SECURE_TRIP_RE.replace("%s", re.escape(marker)))
        smatch = regexp.match(trippart)
        if smatch:
            trippart = regexp.sub('', trippart)
            maxlen = 255 - len(config.SECRET)
            string = smatch.group(1)[:maxlen]
            trip = tripkey * 2 + hide_data(smatch.group(1), 6, "trip",
                config.SECRET, True)
 
            if not trippart: # return directly if there's no normal tripcode

src/v/e/Vealous-HEAD/vealous/service/gtap.py   Vealous(Download)
 
import dbs
from config import twitter_key, twitter_secret, SECRET, DEBUG
class OAuthException(Exception):
    pass

src/v/e/Vealous-HEAD/vealous/utils/handler.py   Vealous(Download)
#SESSION_NAME = 'sessionid'
#SESSION_EXPIRE = 7200
from config import SECRET, SESSION_NAME, SESSION_EXPIRE
 
_mobile = 'ipod|iphone|android|blackberry|palm|nokia|psp|kindle|phone|mobile|opera mini|ucweb|fennec'
    def _generate_sessionid(self):
        rand1 = os.urandom(8)
        rand2 = os.urandom(16)
        now = time.time()
        secret_key = SECRET

src/g/l/glitch-python-HEAD/site/appengine/oauth.py   glitch-python(Download)
          'code': code,
          'client_id': config.APIKEY,
          'client_secret': config.SECRET,
 
          # Why do we need this?

src/m/i/MiniAkio-HEAD/blog/apps/utils.py   MiniAkio(Download)
 
from models import Author
from config import SECRET, STATIC_DIR
 
 
def get_auth_user():
    userid = request.get_cookie("user", secret=SECRET)
    try:
        user = Author.get(id=userid)
    except Author.DoesNotExist:

src/w/a/wakarimasen-HEAD/staff.py   wakarimasen(Download)
            raise WakaError('Passwords should be at least eight characters!')
 
        new = misc.hide_critical_data(new, config.SECRET)
 
        self._update_db(password=new)
    session = model.Session()
    table = model.account
    password = misc.hide_critical_data(pt_password, config.SECRET)
    reign_str = ','.join(reign)
 
def crypt_pass(cleartext, remote):
    return misc.hide_critical_data(','.join((cleartext, remote)),
                                            config.SECRET)
 
class LoginError(WakaError):

src/m/i/MiniAkio-HEAD/blog/apps/common.py   MiniAkio(Download)
from picky import picky
from models import Author
from config import SECRET
 
 
    enpass = user.password
    if is_password(password, enpass):
        response.set_cookie("user", user.id, secret=SECRET, path="/",
                            max_age=30 * 24 * 60 * 60)
        redirect('/admin')