Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
EncryptedLocalStore's stronglyBound == slow as nuts
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jesse Warden  
View profile  
 More options Jul 9 2009, 8:57 pm
From: Jesse Warden <jesse.war...@gmail.com>
Date: Thu, 9 Jul 2009 20:57:38 -0400
Local: Thurs, Jul 9 2009 8:57 pm
Subject: EncryptedLocalStore's stronglyBound == slow as nuts

Dude, Mac + ADL + EncryptedLocalStore + stronglyBound is a REALLY slow
combination.  Locks up the app for at least 10 seconds.  This is regarding
both setItem and getItem.  The removeItem is actually very fast.
No, I haven't tested this outside of ADL.

Turning stronglyBound to false value makes it fast again.  Is there anything
I can do to optimize that?  How about a feature request for AIR 2/3?
 Seriously... if I need to generate my own CRC checksum or whatever the
heck, I'll do it.  Or heck, make the function asynchronous and give me an
event when done, that's cool too.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mister  
View profile  
 More options Jul 10 2009, 1:15 pm
From: Mister <michael.ritc...@gmail.com>
Date: Fri, 10 Jul 2009 10:15:40 -0700 (PDT)
Local: Fri, Jul 10 2009 1:15 pm
Subject: Re: EncryptedLocalStore's stronglyBound == slow as nuts
I have also been curious about possible race conditions when using
EncryptedLocalStore since it has no event fired when complete.   I
guess you can assume that when reading/writing to ELS that the
function following the action does not fire until the read/write is
complete.   Going under that big ol assumption, you can fire your own
complete event after the read/write calls.   I remain skeptical
though...

On Jul 9, 5:57 pm, Jesse Warden <jesse.war...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Damon Edwards  
View profile  
 More options Jul 10 2009, 1:23 pm
From: Damon Edwards <dzedw...@gmail.com>
Date: Fri, 10 Jul 2009 10:23:00 -0700
Subject: Re: [AIR-Tight] Re: EncryptedLocalStore's stronglyBound == slow as nuts

What's the rough size of data you're setting?

Damon Edwards
Web Developer
760.317.6315
http://thedesktube.com - A Desktop YouTube Application
http://www.insideria.com/damon-edwards

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jesse Warden  
View profile  
 More options Jul 10 2009, 1:27 pm
From: Jesse Warden <jesse.war...@gmail.com>
Date: Fri, 10 Jul 2009 13:27:53 -0400
Local: Fri, Jul 10 2009 1:27 pm
Subject: Re: [AIR-Tight] Re: EncryptedLocalStore's stronglyBound == slow as nuts

I do not have race conditions, she works every time.  It's just the "working
part" is slow.
The data I'm storing is like less than a couple k; a username and password,
each about 10 characters long.  However, my AIR file is 6.4 megs, so I'm
assuming it first has to generate a crc checksum of my AIR file, and then
use that in the comparison via Keychain.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oliver Goldman  
View profile  
 More options Jul 10 2009, 5:02 pm
From: Oliver Goldman <ogold...@adobe.com>
Date: Fri, 10 Jul 2009 14:02:23 -0700
Local: Fri, Jul 10 2009 5:02 pm
Subject: Re: [AIR-Tight] Re: EncryptedLocalStore's stronglyBound == slow as nuts

The EncryptedLocalStore API operates synchronously; there is no need  
to worry about race conditions.

The "strongly bound" feature does indeed checksum the entire  
application, which is why it's slow. Frankly, I don't recommend ever  
setting this option to true. For storing things like a username/
password pair, you're not getting any real security benefit. And your  
cached passwords will be inaccessible after an application update,  
which is probably not what you want.

Hope this helps,
Oliver Goldman
Adobe AIR Engineering

On Jul 10, 2009, at 10:27 AM, Jesse Warden wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jesse Warden  
View profile  
 More options Jul 10 2009, 5:04 pm
From: Jesse Warden <jesse.war...@gmail.com>
Date: Fri, 10 Jul 2009 17:04:28 -0400
Local: Fri, Jul 10 2009 5:04 pm
Subject: Re: [AIR-Tight] Re: EncryptedLocalStore's stronglyBound == slow as nuts

Figured as much.
Just an FYI, the current documentation for stronglyBound makes me feel all
warm and fuzzy and secure if I were to use it.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Evan  
View profile  
 More options Jul 30 2009, 4:12 pm
From: Evan <evancoon...@gmail.com>
Date: Thu, 30 Jul 2009 13:12:48 -0700 (PDT)
Local: Thurs, Jul 30 2009 4:12 pm
Subject: Re: EncryptedLocalStore's stronglyBound == slow as nuts
It seems like AIR is generating some kind of checksum of the entire
app regardless of whether or not I'm using the strongly bound feature.
When a user starts my app, the first thing I do is read some data from
EncryptedLocalStore - and it hangs for 20-30 seconds. My app is 200
megs in size (several videos), if I build a version without the videos
the delay is much slower.

It's definitely EncryptedLocalStore, if I disable the ELS.getItem()
call at startup there is no delay at first, but the delay happens as
soon as I call EncryptedLocalStore.getItem().

Please tell me there's a workaround!

On Jul 10, 2:02 pm, Oliver Goldman <ogold...@adobe.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jesse Warden  
View profile  
 More options Jul 30 2009, 4:29 pm
From: Jesse Warden <jesse.war...@gmail.com>
Date: Thu, 30 Jul 2009 16:29:13 -0400
Local: Thurs, Jul 30 2009 4:29 pm
Subject: Re: [AIR-Tight] Re: EncryptedLocalStore's stronglyBound == slow as nuts

Don't use strongly bound, worked for me since I have a large AIR file too.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Evan  
View profile  
 More options Jul 30 2009, 5:35 pm
From: Evan <evancoon...@gmail.com>
Date: Thu, 30 Jul 2009 14:35:47 -0700 (PDT)
Local: Thurs, Jul 30 2009 5:35 pm
Subject: Re: EncryptedLocalStore's stronglyBound == slow as nuts
See, that's the thing- I'm NOT using strongly bound, and it's taking
forever anyway.

                                air.EncryptedLocalStore.setItem("serial", ba, false);

On Jul 30, 1:29 pm, Jesse Warden <jesse.war...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cameron Childress  
View profile  
 More options Jul 30 2009, 5:42 pm
From: Cameron Childress <camer...@gmail.com>
Date: Thu, 30 Jul 2009 17:42:33 -0400
Local: Thurs, Jul 30 2009 5:42 pm
Subject: Re: [AIR-Tight] Re: EncryptedLocalStore's stronglyBound == slow as nuts
I would guess that the "bound or not" setting might be disregarded
after the store is first created, since the app would need to be able
to open it up and use the same method to decrypt as was used to crypt
it.  You might try deleting the crypted datastore file and recreating
it again with stronglyBound=false.

-Cameron

On Thu, Jul 30, 2009 at 5:35 PM, Evan<evancoon...@gmail.com> wrote:

> See, that's the thing- I'm NOT using strongly bound, and it's taking
> forever anyway.

>                                air.EncryptedLocalStore.setItem("serial", ba, false);

--
Cameron Childress
Sumo Consulting Inc
http://www.sumoc.com
---
cell:  678.637.5072
aim:   cameroncf
email: camer...@gmail.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Evan  
View profile  
 More options Jul 30 2009, 6:13 pm
From: Evan <evancoon...@gmail.com>
Date: Thu, 30 Jul 2009 15:13:14 -0700 (PDT)
Local: Thurs, Jul 30 2009 6:13 pm
Subject: Re: EncryptedLocalStore's stronglyBound == slow as nuts
Good thinking, but this is happening on a fresh install.

I'll just have to store the user's serial number in a plaintext file,
that's all I'm using ELS for. Easy workaround, I'm just happy to have
figured out what was causing the slowdown.

On Jul 30, 2:42 pm, Cameron Childress <camer...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oliver Goldman  
View profile  
 More options Jul 30 2009, 7:39 pm
From: Oliver Goldman <ogold...@adobe.com>
Date: Thu, 30 Jul 2009 16:39:09 -0700
Local: Thurs, Jul 30 2009 7:39 pm
Subject: Re: [AIR-Tight] Re: EncryptedLocalStore's stronglyBound == slow as nuts

The first time ELS is accessed the application's signature needs to be  
verified, regardless of whether or not stronglyBound is set. If  
stronglyBound is set, then the signature is re-verified as the  
application is running. Either way, it's expensive if you have a big  
application.

--
Oliver Goldman
Adobe AIR

On Jul 30, 2009, at 3:13 PM, Evan wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »