Results 1 to 3 of 3

Thread: Database Security

  1. #1

    Thread Starter
    Fanatic Member x-ice's Avatar
    Join Date
    Mar 2004
    Location
    UK
    Posts
    671

    Resolved Database Security

    This is just an idea i had, i'm not developing anything really.

    If i was developing a large application that uses a database to store records of all customer, etc...

    The application is used to add, delete, edit, search records. There would also have a table in the database with login details of those who are permitted to use it.

    How would i secure the database (using encryption) so that nobody can ever read the database unless they use the application that will decrypt records that need to read?

    I was thinking of encrypting the whole database using the RSA algorithm, which there is an implementation of on .NET programming languages. But what would be the best way of doing this?
    Last edited by x-ice; Feb 24th, 2007 at 07:12 PM.

  2. #2
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Database Security

    This gets debated on the forum from time to time...

    The major point argued about is that encrypting the data in the actual tables makes the indexes no longer work - as the data is no longer in a "real-visual-data" order.

    If the data is in a DB like MS SQL Server then you can protect it from viewing outside the application by simply using STORED PROCEDURES for all access. No one will be able to casually look at table data with a tool like EXCEL, for instance, if you do this.

    The only people getting access to visually look at the data without the application would be those with rights to the DB server.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  3. #3
    Lively Member
    Join Date
    Nov 2005
    Location
    Bristol/Bath
    Posts
    85

    Re: Database Security

    If you are using SQL server, use the windows based authentication, set up an account for your application to use and remove all other access
    VS.Net Pro 2003, .NET 1.1

    My Photography portfolio:
    http://www.ephotozine.com/user.cfm?user=24834

Posting Permissions

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



Click Here to Expand Forum to Full Width