BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 02-22-2008, 04:56 AM   #1
pa4o85
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Default Do I need to encrypt the Persistent Store objects?

Please Login to Remove!

I want to build application that uses Persistent Store to save the data of the application. I need the best security level i can reach. Do i need to encrypt the data of the persistent store objects or the persistent object model gives this functionality?
Offline  
Old 02-22-2008, 07:32 AM   #2
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

PersistentObject delivers different possibilities of implementation.
In the basic way everybody that knows your storeKey can access it.
If you include a ControlledAccess-Object you can restrict reading and/or changing the store to clients signed with a certain key.

Without knowing your storeKey the access to the store is not possible
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 02-22-2008, 07:45 AM   #3
sn0wshrew
Knows Where the Search Button Is
 
Join Date: Sep 2007
Model: 8830
PIN: N/A
Carrier: Verizon
Posts: 24
Default

However, if your objects are not encrypted when you store them, then even if you protect them from other applications that don't have your key, they can still be read in plaintext off the flash memory - so if someone steals your BlackBerry, your application's data is theirs unless you have encrypted it.

You can test this if you turn security on in the simulator. Have your application store some Strings in the persistent store. Then exit the simulator and run a binary string tool such as strings.exe on the file system of the simulator (which is itself a file in the simulator directory). You'll see all the strings that you stored in the output. Now if you encrypt the Strings before you store them and do the same test, you won't find them in the simulator's file system anymore.
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


MOSTEK Z80  DIP CPU 40 Pin Genuine Commodore 128/PET processor picture

MOSTEK Z80 DIP CPU 40 Pin Genuine Commodore 128/PET processor

$3.49



Vintage MOS 8502 8502R0 Commodore C64 very rare good condition x 1pc picture

Vintage MOS 8502 8502R0 Commodore C64 very rare good condition x 1pc

$22.00



6500/1 A 6502 VARIENT CPU COMMODORE USE IN AMIGA KB & 1520 PLOTTER NMOS NCR NOS picture

6500/1 A 6502 VARIENT CPU COMMODORE USE IN AMIGA KB & 1520 PLOTTER NMOS NCR NOS

$5.89



Commodore 9R-25 Calculator 4.5v Vintage Retro picture

Commodore 9R-25 Calculator 4.5v Vintage Retro

$24.99



Jelenko Commodore LS VPF with Pump  picture

Jelenko Commodore LS VPF with Pump

$875.00



Windsor Commodore Duo 20

Windsor Commodore Duo 20" Carpet extractor w/Lester Charger 25900/Battery/99hour

$2519.95







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.