473,386 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how to encrypt database

blossam
29
i want to encrypt access database
using tools -? security -> encrypt/decrypt database option.
but its not working how to encrypt using this?
is there any setting require for encryption?
Sep 6 '07 #1
5 2800
ADezii
8,834 Expert 8TB
i want to encrypt access database
using tools -? security -> encrypt/decrypt database option.
but its not working how to encrypt using this?
is there any setting require for encryption?
  1. Open Access but do not Open a specific Database.
  2. Tools ==> Security ==> Encrypt/Decrypt Database...
  3. Select database to Encrypt/Decrypt ==> OK.
  4. Enter a Name for the Database to be Encrypted/Decrypted ==> OK.
  5. The Encryption of the Database will be transparent to the User and you will so no noticeable changes except possibly slower execution times.
  6. I'm not really sure what you are expecting, but Encrypting a Database will simply prevent viewing of your data by 3rd party utilities such as Hex Editors, etc.
  7. Hope this helps.
Sep 9 '07 #2
blossam
29
  1. Open Access but do not Open a specific Database.
  2. Tools ==> Security ==> Encrypt/Decrypt Database...
  3. Select database to Encrypt/Decrypt ==> OK.
  4. Enter a Name for the Database to be Encrypted/Decrypted ==> OK.
  5. The Encryption of the Database will be transparent to the User and you will so no noticeable changes except possibly slower execution times.
  6. I'm not really sure what you are expecting, but Encrypting a Database will simply prevent viewing of your data by 3rd party utilities such as Hex Editors, etc.
  7. Hope this helps.
thanks to help me but i dont want this.
i want any one can open my database but if thay open my database thay will find encrypted data. so , any one cant see what is in the database.
thay can just see structure and encrypted data.
Sep 10 '07 #3
ADezii
8,834 Expert 8TB
thanks to help me but i dont want this.
i want any one can open my database but if thay open my database thay will find encrypted data. so , any one cant see what is in the database.
thay can just see structure and encrypted data.
Under this condition, you would have to capture all the existing data in the Database, run it through an Algorithm that will Encrypt it, store the data in its Encrypted state, Decrypt it when it come time for viewing the data, and make provisions for Encrypting all new data that will be entered. A 'lot' of overhead and a very challenging task for someone who is not that experienced. You are much better off creating a Security System for the DB, then assigning specific Permissions on the data for Groups of Users.

NOTE: I've posted a simple Encryption Algorithm below, if you are interested.
Expand|Select|Wrap|Line Numbers
  1. Public Function fEncryptString(TheString As String, ByVal nbrPlaces As Byte) As String
  2. '*******************************
  3. ' Author: Philfr               *
  4. '*******************************
  5. 'This is a simple Encryption Algorithm. Knowing all 'printable' characters are 8
  6. 'Bytes long, you can shift the bits to the left and still have a printable character.
  7. 'To Decrypt, all you have to do is to shift them left until you have come full circle
  8. 'as in the following calling procedures:
  9. 'to Encrypt: fEncryptString(TheString, nbrPlaces)
  10. 'to Decrypt: fEncryptString(TheString, 8 - nbrPlaces)
  11.  
  12. Dim tmp As Integer, i As Integer, mult As Integer
  13. Dim intLength As Integer, tmpSt As String
  14.  
  15. intLength = Len(TheString)
  16. tmpSt = ""
  17. nbrPlaces = nbrPlaces Mod 8     'no point doing more than 7, besides
  18. mult = 2 ^ nbrPlaces            'mult (an Integer) would be too small
  19.  
  20. For i = 1 To intLength
  21.   tmp = Asc(Mid$(TheString, i, 1))  'get the ASCII value of each character
  22.   tmp = tmp * mult                  'apply the multiplier
  23.   tmp = tmp Mod 256 + tmp \ 256     'rotate any 'carry' bit
  24.   tmpSt = tmpSt & Chr$(tmp)         'add the character to the String
  25. Next i
  26.  
  27. fEncryptString = tmpSt
  28. End Function
Sep 10 '07 #4
blossam
29
Under this condition, you would have to capture all the existing data in the Database, run it through an Algorithm that will Encrypt it, store the data in its Encrypted state, Decrypt it when it come time for viewing the data, and make provisions for Encrypting all new data that will be entered. A 'lot' of overhead and a very challenging task for someone who is not that experienced. You are much better off creating a Security System for the DB, then assigning specific Permissions on the data for Groups of Users.

NOTE: I've posted a simple Encryption Algorithm below, if you are interested.
Expand|Select|Wrap|Line Numbers
  1. Public Function fEncryptString(TheString As String, ByVal nbrPlaces As Byte) As String
  2. '*******************************
  3. ' Author: Philfr               *
  4. '*******************************
  5. 'This is a simple Encryption Algorithm. Knowing all 'printable' characters are 8
  6. 'Bytes long, you can shift the bits to the left and still have a printable character.
  7. 'To Decrypt, all you have to do is to shift them left until you have come full circle
  8. 'as in the following calling procedures:
  9. 'to Encrypt: fEncryptString(TheString, nbrPlaces)
  10. 'to Decrypt: fEncryptString(TheString, 8 - nbrPlaces)
  11.  
  12. Dim tmp As Integer, i As Integer, mult As Integer
  13. Dim intLength As Integer, tmpSt As String
  14.  
  15. intLength = Len(TheString)
  16. tmpSt = ""
  17. nbrPlaces = nbrPlaces Mod 8     'no point doing more than 7, besides
  18. mult = 2 ^ nbrPlaces            'mult (an Integer) would be too small
  19.  
  20. For i = 1 To intLength
  21.   tmp = Asc(Mid$(TheString, i, 1))  'get the ASCII value of each character
  22.   tmp = tmp * mult                  'apply the multiplier
  23.   tmp = tmp Mod 256 + tmp \ 256     'rotate any 'carry' bit
  24.   tmpSt = tmpSt & Chr$(tmp)         'add the character to the String
  25. Next i
  26.  
  27. fEncryptString = tmpSt
  28. End Function
thanks
I also know some encryption algorithem but its not useful to me
'cus client req. that the system should enc. database. anyways i'll use some other database thanks lot.
Sep 12 '07 #5
u wan to encrypt the data and will changing database help? if u want to encypt the data, u should look under system.security.cryptography(C#). there are a few types od encryption techniques..hashing actually like DES, MD5 and so on...
Oct 8 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: wqhdebian | last post by:
As far as I know,when encrypt or decrypt ,a key must first be got,and the key is first generate by a tool or from SecurityRandom,that means I can not generate the same key with the same input.Does...
2
by: kai | last post by:
Hi, I tied to encrypt my database for outside user import tables from my database using Access. After I encrypt the database, I import the encrypt tables found they are still readable. What did...
10
by: Javier Gomez | last post by:
I have a table with 15.000 records. How can encrypt all information if after will shown in a form (text box)decryted ????? Thanks in advance Javier Gomez
20
by: Drebin | last post by:
It's a long story really, but the bottom line is we need to encrypt or obfuscate a clear-text 9-digit SSN/taxpayer ID into something less than 21 characters. It doesn't need to be super-secure,...
3
by: Alex Nitulescu | last post by:
Hi. I am writing an app which stores usernames/passwords and email addresses in a database table. The question is how can I encrypt the password provided by the user ? ...
3
by: Luis Esteban Valencia | last post by:
Hello I want to encrypt the sqlconenction string on the xml configuration files. The problem is the following I have an application at my company that accesses a sql server local database. ...
2
by: Daniel | last post by:
Hi All, Does anyone know how to encrypt the password before store in the sql database? In addition, decrypt the password from database before comparison. The purpose to do it because to hide the...
2
by: Miles Keaton | last post by:
still doing my switch from MySQL to PgSQL, and can't figure out what the comparable function would be for this: In MySQL, to store a big secret (like a credit card number) in the database that I...
4
by: google | last post by:
OK, I know how to encrypt and decrypt data, but here's the deal: I have a large Winforms .NET 2.0 application which is currently storing the connection string in the app.config file unencrypted...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.