Tagged Questions
23
votes
2answers
3k views
Django SECRET_KEY
What exactly is the point of the SECRET_KEY in django? I did a few google searches and checked out the docs ( https://docs.djangoproject.com/en/dev/ref/settings/#secret-key ), but I was looking for a ...
22
votes
5answers
20k views
What (pure) Python library to use for AES 256 encryption?
I am looking for a (preferably pure) python library to do AES 256 encryption and decryption.
This library should support the CBC cipher mode and use PKCS7 padding according to the answer to an ...
20
votes
2answers
3k views
How can I use bcrypt/scrypt on appengine for Python?
I want make an authentication system for my app along the lines of SUAS, except instead of using SHA256 for hashing passwords I'd like to use bcrypt or scrypt. Unfortunately both py-bcrypt and scrypt ...
14
votes
6answers
11k views
How to do PGP in Python (generate keys, encrypt/decrypt)
I'm making a program in Python to be distributed to windows users via an installer.
The program needs to be able to download a file every day encrypted with the user's public key and then decrypt it.
...
13
votes
6answers
4k views
what is the best/easiest to use encryption library in python [closed]
I want to encrypt few files using python what is the best way
I can use gpg/pgp using any standard/famous python libraries?
12
votes
4answers
5k views
Python's safest method to store and retrieve passwords from a database
Looking to store usernames and passwords in a database, and am wondering what the safest way to do so is. I know I have to use a salt somewhere, but am not sure how to generate it securely or how to ...
9
votes
3answers
5k views
simple encrypt/decrypt lib in python with private key
is there a simple way to encrypt/decrypt a string with a key.
somthing like:
key = '1234'
string = 'hello world'
encrypted_string = encrypt(key, string)
decrypt(key, encrypted_string)
i couldn't ...
7
votes
3answers
4k views
Implementaion HMAC-SHA1 in python
I am trying to use the OAuth of a website, which requires the signature method to be 'HMAC-SHA1' only.
I am wondering how to implement this in Python?
7
votes
4answers
2k views
A good way to encrypt database fields? - Django
I've been asked to encrypt various db fields within the db.
Problem is that these fields need be decrypted after being read.
I'm using Django and SQL Server 2005.
Any good ideas?
7
votes
1answer
691 views
Custom field's to_python not working? - Django
I'm trying to implement an encrypted char field.
I'm using pydes for encryption
This is what I have:
from pyDes import triple_des, PAD_PKCS5
from binascii import unhexlify as unhex
from binascii ...
7
votes
3answers
2k views
How To Reversibly Store Password With Python On Linux?
First, my question is not about password hashing, but password encryption. I'm building a desktop application that needs to authentificate the user to a third party service. To speed up the login ...
7
votes
5answers
933 views
I need to securely store a username and password in Python, what are my options?
I'm writing a small Python script which will periodically pull information from a 3rd party service using a username and password combo. I don't need to create something that is 100% bulletproof (does ...
7
votes
2answers
145 views
Is it possible to salt and or hash HOTP/TOTP secret on the server?
I am building a two-factor authentication system based on the TOTP/HOTP.
In order to verify the otp both server and the otp device must know the shared secret.
Since HOTP secret is quite similar to ...
7
votes
6answers
1k views
UDP security and identifying incoming data
I have been creating an application using UDP for transmitting and receiving information. The problem I am running into is security. Right now I am using the IP/socketid in determining what data ...
7
votes
3answers
999 views
Strategies for Encryption with Django + Postgres?
I'm going to be storing a few sensitive pieces of information (SSN, Bank Accounts, etc) so they'll obviously need to be encrypted. What strategies do you recommend?
Should I do all the ...