dbTalk Databases Forums  

Hide data from users but allow them to use front-end

comp.databases.ms-access comp.databases.ms-access


Discuss Hide data from users but allow them to use front-end in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
klar
 
Posts: n/a

Default Hide data from users but allow them to use front-end - 11-24-2011 , 09:15 AM






Hi Access experts,

I want to create my own database. The data collection will be
extremely pain-staking. I would like to create a Access database with
a front-end and back-end. The back-end will be encrypted. I would like
my users to use the database through the front-end but do not want
them to be able to steal my data in the backend. May I know if this is
possible without revealing the password?

Thank you.

Reply With Quote
  #2  
Old   
Bob Barrows
 
Posts: n/a

Default Re: Hide data from users but allow them to use front-end - 11-24-2011 , 09:36 AM






klar wrote:
Quote:
Hi Access experts,

I want to create my own database. The data collection will be
extremely pain-staking. I would like to create a Access database with
a front-end and back-end. The back-end will be encrypted. I would like
my users to use the database through the front-end but do not want
them to be able to steal my data in the backend. May I know if this is
possible without revealing the password?

Thank you.
If the users are familiar with Access, then no, it is not possible. If they
are not familiar with it, and are not savvy enough to do some googling, then
yes, it is possible.

Reply With Quote
  #3  
Old   
(PeteCresswell)
 
Posts: n/a

Default Re: Hide data from users but allow them to use front-end - 11-24-2011 , 04:28 PM



Per klar:
Quote:
I want to create my own database. The data collection will be
extremely pain-staking. I would like to create a Access database with
a front-end and back-end. The back-end will be encrypted. I would like
my users to use the database through the front-end but do not want
them to be able to steal my data in the backend. May I know if this is
possible without revealing the password?
Put the data into an SQL Server DB - like the freebie version
that is often used w/Access.

Apply security such that nobody but you can get to the tables.

Then create stored procedures in the DB that supply the data you
want to feed into Access and then call them from Access when it's
time to load your forms.

A determined user can still scrape the screen, but at least they
cannot get to the tables.
--
PeteCresswell

Reply With Quote
  #4  
Old   
klar
 
Posts: n/a

Default Re: Hide data from users but allow them to use front-end - 11-25-2011 , 04:05 AM



Thank you for all your replies. The goal is not to have a perfectly
secure solution. This does not seem realistic based on what I
understand from Access. The goal is to inconvenience other people from
stealing the data and "reselling" it.

The requirement is to distribute the database as an stand-alone Access
file without requiring any networking. I encrypted the database with a
password. However, the moment the database is opened, the user is
prompted with a password. What if I want the user to be able to use a
front-end to use the database without releasing the password to them?
Can this be done? Any helpful internet links? My boss is chasing me on
this now. Thank you very much.

On Nov 25, 6:28*am, "(PeteCresswell)" <x...@y.Invalid> wrote:
Quote:
Per klar:

I want to create my own database. The data collection will be
extremely pain-staking. I would like to create a Access database with
a front-end and back-end. The back-end will be encrypted. I would like
my users to use the database through the front-end but do not want
them to be able to steal my data in the backend. May I know if this is
possible without revealing the password?

Put the data into an SQL Server DB - like the freebie version
that is often used w/Access.

Apply security such that nobody but you can get to the tables.

Then create stored procedures in the DB that supply the data you
want to feed into Access and then call them from Access when it's
time to load your forms.

A determined user can still scrape the screen, but at least they
cannot get to the tables.
--
PeteCresswell

Reply With Quote
  #5  
Old   
Bob Barrows
 
Posts: n/a

Default Re: Hide data from users but allow them to use front-end - 11-25-2011 , 04:20 AM



You can hard-code the password into the connection strings of the linked
tables in your front end, but it will be clear text available to anyone who
knows to click ctrl-g and enter the command
?currentdb.tabledef("linked table name").connect
in the immediate window

klar wrote:
Quote:
Thank you for all your replies. The goal is not to have a perfectly
secure solution. This does not seem realistic based on what I
understand from Access. The goal is to inconvenience other people from
stealing the data and "reselling" it.

The requirement is to distribute the database as an stand-alone Access
file without requiring any networking. I encrypted the database with a
password. However, the moment the database is opened, the user is
prompted with a password. What if I want the user to be able to use a
front-end to use the database without releasing the password to them?
Can this be done? Any helpful internet links? My boss is chasing me on
this now. Thank you very much.

Reply With Quote
  #6  
Old   
GS
 
Posts: n/a

Default Re: Hide data from users but allow them to use front-end - 11-25-2011 , 06:13 AM



klar <klarbuf (AT) gmail (DOT) com> wrote:

Quote:
Thank you for all your replies. The goal is not to have a perfectly
secure solution. This does not seem realistic based on what I
understand from Access. The goal is to inconvenience other people from
stealing the data and "reselling" it.
The problem you face is essentially the same as faced by distributors
trying to encrypt DVDs - in the end the password must be accessible or the
user won't be able to access the content.

Your only real protection is copyright law - this kind of situation is
after all why copyright exists in the first place. Now it may be that what
you are selling is a collection of facts you've amassed which are not
themselves copyrightable, however your work as a whole can still be
protected by copyright, since a collection of facts can be a copyright work
taken as a whole. A dictionary is a good example - many of the entries in a
dictionary are too similar to all other dictionaries to be copyrightable,
but the dictionary as a whole is still a copyright work.

The protection afforded by access controls such as you are trying to
implement is actually mainly legal not cryptographic. Under the DMCA in the
USA and the Digital Copyright Directive in the EU, circumventing an access
control to gain an unauthorised form of access to copyright material is
itself an offence. So you may as well go ahead with an access function that
contains the password to the data, as long as you include some legal rubric
with the distribution that tells purchasers that they are forbidden to
access the material except through your interface on pain of prosecution
under the DMCA etc.

However IANAL so you should consult a copyright lawyer before putting your
product on the market.

Reply With Quote
  #7  
Old   
Arvin Meyer
 
Posts: n/a

Default Re: Hide data from users but allow them to use front-end - 11-25-2011 , 05:43 PM



If you are using the MDB format, and Access 2003 or earlier, you can put
enough security on the database that casual users will be kept out. Here are
a bunch of useful links. Pay particular attention to the first one, the
Microsoft Security FAQ. Read it several times, and always work on a copy
until you get it right:

Security FAQ
http://support.microsoft.com/support...ent/secfaq.asp

Lynn Trapp's summarization:
http://www.ltcomputerdesigns.com/The10Steps.htm

KB articles:
http://support.microsoft.com/default...;en-us;q165009
http://download.microsoft.com/downlo...-us/secfaq.exe
http://support.microsoft.com/default.aspx?kbid=325261

Joan Wild's articles:
http://www.jmwild.com/security02.htm
http://www.jmwild.com/security97.htm
http://www.jmwild.com/SecureNoLogin.htm
http://www.jmwild.com/Unsecure.htm
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.accessmvp.com
http://access.mvps.org
Co-author: "Access Solutions", published by Wiley


"klar" <klarbuf (AT) gmail (DOT) com> wrote

Quote:
Hi Access experts,

I want to create my own database. The data collection will be
extremely pain-staking. I would like to create a Access database with
a front-end and back-end. The back-end will be encrypted. I would like
my users to use the database through the front-end but do not want
them to be able to steal my data in the backend. May I know if this is
possible without revealing the password?

Thank you.

Reply With Quote
  #8  
Old   
tom r
 
Posts: n/a

Default Re: Hide data from users but allow them to use front-end - 11-29-2011 , 02:49 PM



On Nov 25, 6:43*pm, "Arvin Meyer" <arv... (AT) invalid (DOT) org> wrote:
Quote:
If you are using the MDB format, and Access 2003 or earlier, you can put
enough security on the database that casual users will be kept out. Here are
a bunch of useful links. Pay particular attention to the first one, the
Microsoft Security FAQ. Read it several times, and always work on a copy
until you get it right:

Security FAQhttp://support.microsoft.com/support/access/content/secfaq.asp

Lynn Trapp's summarization:http://www.ltcomputerdesigns.com/The10Steps.htm

KB articles:http://support.microsoft.com/default...px?kbid=325261

Joan Wild's articles:http://www.jmwild.com/security02.htm...m/Unsecure.htm
--
Arvin Meyer, MCP, MVPhttp://www.datastrat.comhttp://www.accessmvp.comhttp://access.mvps.org
Co-author: "Access Solutions", published by Wiley

"klar" <klar... (AT) gmail (DOT) com> wrote in message

news:8f600e43-5b17-4c23-aec5-316fb64a1466 (AT) t38g2000prg (DOT) googlegroups.com...



Hi Access experts,

I want to create my own database. The data collection will be
extremely pain-staking. I would like to create a Access database with
a front-end and back-end. The back-end will be encrypted. I would like
my users to use the database through the front-end but do not want
them to be able to steal my data in the backend. May I know if this is
possible without revealing the password?

Thank you.- Hide quoted text -

- Show quoted text -
Have you considered using your own encryption for the backend
database? You can then embed the Key in a compiled front end database
and use queries (using the decrypt function) to retrieve all of your
data.

Here is a simple example of an XOR encryption:

On a form, create three textboxes (txtOriginal, txtEncrypted,
txtDecrypted) and two command buttons (btnEncrypt, btnDecrypt)


'********* start code **********
Private Function Encrypt(ByVal strInput As String, ByVal strKey As
String) As String
Dim iCount As Long
Dim lngPtr As Long

For iCount = 1 To Len(strInput)
Mid(strInput, iCount, 1) = Chr((Asc(Mid(strInput, iCount, 1))) Xor
(Asc(Mid(strKey, lngPtr + 1, 1))))
lngPtr = ((lngPtr + 1) Mod Len(strKey))
Next iCount
Encrypt = strInput
End Function
'****************
Private Sub btnEncrypt_Click()
Dim keystr As String

If IsNull(txtOriginal) Then Exit Sub
keystr = "BaNaNaS"

txtEncrypted = Encrypt(txtOriginal, keystr)

End Sub
'*****************
Private Sub btnDecrypt_Click()
Dim keystr As String

If IsNull(txtEncrypted) Then Exit Sub
keystr = "BaNaNaS"

txtDecrypted = Encrypt(txtEncrypted, keystr)

End Sub
'********** end code ************

You can use this function in a routine that steps through all of the
critical data in your tables and encrypts it.

Tom R

Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.