|
|
Home » Developing U++ » UppHub » Encrypted storage with streaming (OpenSSL, AES)
|
|
bazaar: DeEncrypter [message #27832 is a reply to message #25828] |
Thu, 05 August 2010 21:09 |
|
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
in bazaar is a DeEncrypter based on AESStream. i hope i am using it right (Mindtraveller could review it). it works so far, but only for files < 200 MB or so (allocator breaks with Out of Memory sometime, if file too big, it's the upp allocator i am using, default case).
so the matter is, it can import keys. and could be extended with a functionality to derive the key from a user password...
but best would be to have a port for RSA asymetrical encryption. then one could encrypt the key and leave it encrypted with the public key, stay with the data somewhere, and 'unlock' (decrypt) it with the password, which would result somehow in the private key.
as far as i remember the major encryption programs do it the same , maybe more fancy
|
|
|
|
|
|
Re: bazaar: DeEncrypter [message #27910 is a reply to message #27908] |
Tue, 10 August 2010 15:46 |
|
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
yes, absolutely.
this was a quick shot, i needed it for my app, delivering some additional ressource files, which should be 'scrambled' for small files it works with no issues, i just wanted to try it with larger files ofcorse.
i am not very familiar with the Stream stuff in upp yet, but definitely need to..
meanwhile, i dont mind anyone to change the behaviour accordingly, this could, infact, be a true life example of how to do streaming processing with AESStream..if you already know what to change, feel free to do so i might do it as soon as i have some more info on that and some more time.. like always.
cheers
|
|
|
|
|
|
Re: bazaar: DeEncrypter [message #27943 is a reply to message #27935] |
Wed, 11 August 2010 15:29 |
|
koldo
Messages: 3404 Registered: August 2008
|
Senior Veteran |
|
|
Excellent.
Now plain user password can be used!
Two things:
- As class has changed, old encrypted strings and keys do not match . Could you add the user password possibility not by default? (as it was before)
- In AESHashedString() you could just use SHA256String() function in Sha.cpp file .
Best regards
Iñaki
[Updated on: Wed, 11 August 2010 15:30] Report message to a moderator
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Dec 14 11:06:17 CET 2024
Total time taken to generate the page: 0.03660 seconds
|
|
|