Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6381747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:26:04+00:00 2026-05-25T02:26:04+00:00

I want to be able to encrypt all the data that I save in

  • 0

I want to be able to encrypt all the data that I save in a MySQL database. I also need to be able to decrypt the data using a private key.

This database can be accessed by more than one person.

I would like to know what PHP functionality I need to use in order to accomplish this.

Thank You

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:26:05+00:00Added an answer on May 25, 2026 at 2:26 am

    Encrypting your entire database is a lot of trouble unless the database offers “transparent encryption”, Oracle databases offer such a thing. A light-weight open source solution using transparent encryption is SQLite. With this feature, the encryption does not apply to the data directly but the storage itself is encrypted. This means that you can work on your database as usual with the added benefit that the physical storage is encrypted. But unfortunately, MySQL does not offer such a thing.

    First, why it’s not a good idea to encrypt your entire database. Encrypted data looks like random garbage to your database. This implies a lot of negative things such as

    • SELECTs no longer work on your data the way they did before, if at all (requires a lot of effort)
    • Indexing becomes pretty much useless
    • Database logs are rendered useless
    • …

    If you encrypt using MySQL’s built-in encryption support then this means that the data itself is sent in plain text to the database – unless you use a TLS-secured connection, this means that eavesdroppers won’t care about your encryption at all.

    So if you need to encrypt data you should keep it at a minimum and only encrypt the truly sensitive parts of your data to still be able to execute efficient queries on it. You should also encrypt the data directly in the application if there is no possibility to have a secure TLS connection between application and database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I encrypt/decrypt with fuzzy tolerance? I want to be able to use
I want a form where user can change password. I am able to encrypt
I'm using LaTeX and BibTeX for an article, and I want to able to
I want to be able to capture the exception that is thrown when a
I want to provide the user the ability to save personal data encrypted. This
I want to take a video file and encrypt it using java. For now
we want to encrypt some attributes of our entity, but still be able to
I'm looking to encrypt some data using multiple ciphers (ie, AES, Serpent, Twofish...), and
I need to encrypt data and store it in a file and later be
I want to be able to sign a file. By that I mean that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.