indexer.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:ipwb 作者: oduwsdl 项目源码 文件源码
def askUserForEncryptionKey():
    if DEBUG:  # Allows testing instead of requiring a user prompt
        return 'ipwb'

    outputRedirected = os.fstat(0) != os.fstat(1)
    promptString = 'Enter a key for encryption: '
    if outputRedirected:  # Prevents prompt in redir output
        promptString = ''
        print(promptString, file=sys.stderr)

    key = raw_input(promptString)

    return key
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号