Re: [web2py] Re: web2py: encrypt uploaded files

2012-04-11 Thread Naveed Ahmed
Thanks Massimo for getting back. I can’t use an encrypted file system as when the file system is mounted, it’s totally open. Every file can be encrypted with the same master password. I’m thinking of storing this master password which is itself encrypted using the user’s password (or it’s hash)

Re: [web2py] Re: web2py: encrypt uploaded files

2012-04-11 Thread Massimo Di Pierro
Perhaps this can be useful: http://stackoverflow.com/questions/6309958/encrypting-a-file-with-rsa-in-python (look at code in first answer) On Wednesday, 11 April 2012 12:35:05 UTC-5, naveed wrote: > > Thanks Massimo for getting back. I can’t use an encrypted file system > as when the file syste

Re: [web2py] Re: web2py: encrypt uploaded files

2012-04-12 Thread Naveed Ahmed
: Massimo Di Pierro Sent: Wednesday, April 11, 2012 13.31 To: web2py@googlegroups.com Subject: Re: [web2py] Re: web2py: encrypt uploaded files Perhaps this can be useful: http://stackoverflow.com/questions/6309958/encrypting-a-file-with-rsa-in-python (look at code in first answer) On Wednesday

RE: [web2py] Re: web2py: encrypt uploaded files

2012-04-12 Thread Alvaro Lizama
2012 13.31 > To: web2py@googlegroups.com (mailto:web2py@googlegroups.com) > Subject: Re: [web2py] Re: web2py: encrypt uploaded files > > > > Perhaps this can be useful: > http://stackoverflow.com/questions/6309958/encrypting-a-file-with-rsa-in-python > (look at code in

Re: [web2py] Re: web2py: encrypt uploaded files

2012-04-12 Thread Derek
stem. Assuming that we have functions encrypt(file, password) and > decrypt(file, password) which return the encrypted and decrypted file > respectively. > > > *From:* Massimo Di Pierro > *Sent:* Wednesday, April 11, 2012 13.31 > *To:* web2py@googlegroups.com > *Subje

Re: [web2py] Re: web2py: encrypt uploaded files

2012-04-13 Thread Massimo Di Pierro
eb2py’s existing excellent form upload and download > system. Assuming that we have functions encrypt(file, password) and > decrypt(file, password) which return the encrypted and decrypted file > respectively. > > > *From:* Massimo Di Pierro > *Sent:* Wednesday,

Re: [web2py] Re: web2py: encrypt uploaded files

2012-04-26 Thread minhcd
self, but how to >> incorporate it in to web2py’s existing excellent form upload and download >> system. Assuming that we have functions encrypt(file, password) and >> decrypt(file, password) which return the encrypted and decrypted file >> respectively. >> >>

Re: [web2py] Re: web2py: encrypt uploaded files

2012-04-26 Thread minhcd
I wasn’t asking as how to encrypt the file itself, but how to >>> incorporate it in to web2py’s existing excellent form upload and download >>> system. Assuming that we have functions encrypt(file, password) and >>> decrypt(file, password) which return the encrypted and decrypt

Re: [web2py] Re: web2py: encrypt uploaded files

2012-04-26 Thread Richard Galka
;),EncryptedField('secret','upload',password='too >>> >>> many secrets!')) >>> >>> On Thursday, 12 April 2012 16:35:36 UTC-5, naveed wrote: >>>> >>>> I wasn’t asking as how to encrypt the file i

Re: [web2py] Re: web2py: encrypt uploaded files

2012-04-26 Thread Richard Galka
For encrypting/decrypting DB columns, we also use a validator: Ex: db.define_table('table', Field('name', 'text'), Field('host', 'text', requires = SecureValidator(symmetrickey)), Field('secret', 'text', requires = SecureValidator(symmetrickey)) )