106 reputation
3
bio website
location
age
visits member for 10 months
seen Mar 23 at 7:57

Feb
7
comment Encrypting a payload for transmission over HTTP. AES256 with PBKDF2
Updated my code to use GCM and reused the salt for the GCM nonce.
Feb
7
awarded  Editor
Feb
7
revised Encrypting a payload for transmission over HTTP. AES256 with PBKDF2
Added new code based on feedback
Feb
7
awarded  Supporter
Feb
7
comment Encrypting a payload for transmission over HTTP. AES256 with PBKDF2
Thanks for your input. Building something myself is quite beyond my expertise. Would it be possible to use the same value for the salt and IV? Granted that I generate a new one for every message?
Feb
7
comment Encrypting a payload for transmission over HTTP. AES256 with PBKDF2
@figlesquidge, I'm sending messages through Google Cloud Messaging, which imposes that limit. Also see: developer.chrome.com/apps/cloudMessaging.html
Feb
7
comment Encrypting a payload for transmission over HTTP. AES256 with PBKDF2
@Thomas, are there any specifications regarding what number of iterations are sensible?
Feb
7
awarded  Student
Feb
6
comment Encrypting a payload for transmission over HTTP. AES256 with PBKDF2
@Ricky, thanks. As that post suggests, I've never heard of authenticated encryption before. I'm leaning towards using GCM, but I will have to look some more into it. -- Will I only be able to "win" space within the 256 bytes if I compress the data? DEFLATE for instance.
Feb
6
revised Encrypting a payload for transmission over HTTP. AES256 with PBKDF2
edited tags
Feb
6
asked Encrypting a payload for transmission over HTTP. AES256 with PBKDF2