×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Jun 2007
    Location
    Jakarta, Indonesia
    Posts
    269

    secure delete file

    Hi FN


    I want to be able to secure delete a file from the disk, so the file can not be undelete. Is there any API to do this?

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: secure delete file

    As far as i know there is no Undelete API in Symbian.C++. So just delete a file and you can't recover.

  3. #3
    Nokia Developer Champion
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,545

    Re: secure delete file

    It depends. If the file is on a memory card, it might just be marked as deleted, but the contents are still accessible (and there are file recovery tools that can help with it).

    A better way might be first to overwrite the contents of the file with garbage, and only then delete it. However, I think with flash memory there is a limited number of writes that a given memory location can handle, so overwriting might appear to be to the same memory location, but in reality might be done to a different location still leaving the data there. However, I could be mistaken, as I'm no flash memory behaviour expert.

    If you want to be safer, then also store everything in encrypted form, and then unencrypt the data in memory. That way the written data in a file is even harder to recover.

    In any case, for files in phone memory, usually just deleting is enough to prevent most people from being able to undelete it.

  4. #4
    Regular Contributor
    Join Date
    May 2008
    Posts
    139

    Re: secure delete file

    Quote Originally Posted by strike_noir View Post
    Hi FN


    I want to be able to secure delete a file from the disk, so the file can not be undelete. Is there any API to do this?
    relatively secure way is to overwrite with AA55... and later with 55AA.. pattern and then delete it. So even if someone trys to recover it by removing memory card etc, it will be safe.

    Refer to Gutmann overwrite method wikipedia

    http://en.wikipedia.org/wiki/Gutmann_method

  5. #5
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: secure delete file

    Actually NAND flash cards employ a levelling algorithm which means that any writes to a sector will result in a different sector being written. Whether or not the original sector is cleared immediately is up to the driver.

    In addition to the levelling algorithm there is also a block erasure issue in that blocks tend to be quite big so partial pages will not be cleared when the file is rewritten.

    More information can be found in the devkit by looking for the UniStore II drivers if you are a devkit licencee.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

Similar Threads

  1. Problem with pyobfuscate
    By JOM in forum Symbian
    Replies: 3
    Last Post: 2008-06-20, 22:47
  2. PED and signing.
    By IX in forum Symbian
    Replies: 11
    Last Post: 2008-04-21, 01:15
  3. Delete file from mobile drive
    By chanchad_tejas in forum Symbian
    Replies: 1
    Last Post: 2007-11-13, 15:02
  4. Unable to delete file
    By psfelix in forum General Development Questions
    Replies: 0
    Last Post: 2006-01-30, 11:19
  5. Tips on using NDS 1.1
    By mitts in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2006-01-18, 16:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •