What is Data Encryption | From DES to Modern Algorithms | Imperva (2024)

What is Data Encryption

Data encryption is a method of converting data from a readable format (plaintext) into an unreadable, encoded format (ciphertext). Encrypted data can only be read or processed after it has been decrypted, using a decryption key or password. Only the sender and the recipient of the data should have access to the decryption key.

As you deploy an encryption solution, you should be aware that encryption is vulnerable to attack from several directions:

  • It is possible to use computer programs to break some encryption algorithms and gain access to encrypted content, although stronger encryptions require a massive amount of computing resources to break.
  • Encrypted data in transit can be vulnerable. Authorized devices can be infected by malware that ‘sniffs’ data or ‘eavesdrops’ as data travels across networks.
  • Encrypted data at rest can be compromised, either by malware on a storage device, or by unauthorized users who gain access to user passwords or keys.

Nevertheless, data encryption can deter hackers from accessing sensitive information, and is essential to most security strategies. Your security strategy should not, however, solely rely on encryption.

DES & Other Popular Encryption Algorithms

Data Encryption Standard (DES) is a now-outdated symmetric encryption algorithm—you use the same key to encrypt and decrypt a message. DES uses a 56-bit encryption key (8 parity bits are stripped off from the full 64-bit key) and encrypts data in blocks of 64 bits. These sizes are typically not large enough for today’s uses. Therefore, other encryption algorithms have succeeded DES:

  • Triple DES—was once the standard symmetric algorithm. Triple DES employs three individual keys with 56 bits each. The total key length adds up to 168 bits, but according to most experts, its effective key strength is only 112 bits.
  • RSA—a popular public-key (asymmetric) encryption algorithm. It uses a pair of keys: the public key, used to encrypt the message, and the private key, used to decrypt the message.
  • Blowfish—a symmetric cipher that splits messages into blocks of 64 bits and encrypts them one at a time. Blowfish is a legacy algorithm, which is still effective, but has been succeeded by Twofish.
  • Twofish—a symmetric cipher leveraging keys up to 256 bits in length. Twofish is used in many software and hardware environments. It is fast, freely available and unpatented.
  • The Advanced Encryption Standard (AES)—this algorithm is the standard currently accepted by the U.S. Government and other organizations. It works well in 128-bit form, however, AES can use keys of 192 and 256 bits. AES is considered resistant to all attacks, except brute force.
  • Elliptic Curve Cryptography (ECC)—the algorithm used as part of the SSL/TLS protocol which encrypts communication between websites and their visitors. It provides better security with shorter key lengths; a 256 bit ECC key provides the same level of security as a 3,072 bit RSA key.

Data At Rest and Database Encryption

Data at rest is data that does not travel between networks or devices. It includes data on a laptop, hard drive, flash drive, or database. Data at rest is attractive to attackers as it often has meaningful file names and logical structures, which can point to personal information, credit cards, intellectual property, healthcare information, etc.

If your company does not properly dispose of its data assets, it can create security risks for itself and its customers. Always assume that attackers can access data at rest. Minimizing the amount of data at rest, keeping an inventory of all remaining data, and securing it, is key to preventing data breaches.

Database Encryption

In most modern applications, data is input by users, processed by applications, and then stored to a database. At a lower level, the database consists of files managed by an operating system, stored on physical storage such as a flash hard drive.

Encryption can be performed at four levels:

  • Application level encryption—data is encrypted by the application that modifies or generates the data, before it is written to the database. This makes it possible to customize the encryption process for each user, based on user roles and permissions.
  • Database encryption—the entire database, or parts of it, can be encrypted to secure the data. Encryption keys are stored and managed by the database system.
  • File system level encryption—allows computer users to encrypt directories and individual files. File-level encryption uses software agents, which interrupt read and write calls to disks and use policies to see if the data needs to be decrypted or encrypted. Like full disk encryption, it can encrypt databases along with any other data stored in folders.
  • Full disk encryption—automatically converts data on a hard drive into a form that cannot be deciphered without the key. Databases stored on the hard drive are encrypted along with any other data.

What is Data Encryption | From DES to Modern Algorithms | Imperva (2)

Four levels of data encryption

Encryption Techniques and Technologies

  • Column level encryption—individual columns of data within a database are encrypted. A separate and unique encryption key for each column increases flexibility and security.
  • Transparent data encryption—encrypts an entire database, effectively protecting data at rest. The encryption is transparent to the applications that use the database. Backups of the database are also encrypted, preventing data loss if backup media is stolen or breached.
  • Field-level encryption—encrypting data in specific data fields. Creators can mark sensitive fields so that data entered by users in those fields are encrypted. These can include social security numbers, credit card numbers, and bank account numbers.
  • Hashing—changing a string of characters into a shorter fixed-length key or value that resembles the original string. Hashing is commonly used in passwords systems. When a user initially defines a password, it is stored as a hash. When the user logs back into the site, the password they use is compared to the unique hash, to determine if it correct.
  • Symmetric key encryption—a private key is applied to data, changing it so it is cannot be read without being decrypted. Data is encrypted when saved, and decrypted when retrieved, provided the user or application supplies the key. Symmetric encryption is considered inferior to asymmetric encryption because there is a need to transfer the key from sender to recipient.
  • Asymmetric encryption—incorporates two encryption keys: private and public. A public key can be retrieved by anyone and is unique to one user. A private key is a concealed key that is only known by one user. In most cases, the public key is the encryption key and the private key is the decryption key.

The Downside of Database Encryption

Database encryption can result in performance degradation, in particular when column-level encryption is used. Thus, organizations may be reluctant to use data encryption or apply it to all data at rest.

Many RDBMS systems provide built-in encryption and key-management facilities. Database encryption is thus easier to carry out if a data center uses databases from only one vendor. If you manage databases from multiple vendors, key management can become an issue, and lapses in key management can lead to security breaches.

An additional risk is accidental data loss. When data is encrypted using strong ciphers, and a key is lost, the data cannot be retrieved. Accidental loss or mismanagement of keys can have disastrous consequences.

See how Imperva Data Masking can help you with data encryption.

Request demo Learn more

How Imperva Helps Protect Your Data

Imperva’s data security solution adds several layers of protection to your data, complementing data encryption strategies.

Imperva protects data stores to ensure compliance and preserve the agility and cost benefits you get from your cloud investments:

Cloud Data Security – Simplify securing your cloud databases to catch up and keep up with DevOps. Imperva’s solution enables cloud-managed services users to rapidly gain visibility and control of cloud data.

Database Security – Imperva delivers analytics, protection, and response across your data assets, on-premise and in the cloud – giving you the risk visibility to prevent data breaches and avoid compliance incidents. Integrate with any database to gain instant visibility, implement universal policies, and speed time to value.

Data Risk Analysis – Automate the detection of non-compliant, risky, or malicious data access behavior across all of your databases enterprise-wide to accelerate remediation.

What is Data Encryption | From DES to Modern Algorithms | Imperva (2024)

FAQs

What is Data Encryption | From DES to Modern Algorithms | Imperva? ›

Data encryption is a method of converting data from a readable format (plaintext) into an unreadable, encoded format (ciphertext). Encrypted data can only be read or processed after it has been decrypted, using a decryption key or password.

What is the DES encryption algorithm? ›

DES is the archetypal block cipher—an algorithm that takes a fixed-length string of plaintext bits and transforms it through a series of complicated operations into another ciphertext bitstring of the same length. In the case of DES, the block size is 64 bits.

What are the algorithms for data encryption? ›

There are two primary types of data encryption algorithms: Asymmetric encryption, also known as public key encryption, which uses two keys: a public key and a private key. The public key is used to encrypt the data, and the private key is used to decrypt the data.

What is the Data Encryption Standard DES an example of? ›

DES is a block cipher--meaning it operates on plaintext blocks of a given size (64-bits) and returns ciphertext blocks of the same size. Thus DES results in a permutation among the 2^64 (read this as: "2 to the 64th power") possible arrangements of 64 bits, each of which may be either 0 or 1.

What is the data encryption? ›

Data encryption translates data into another form, or code, so that only people with access to a secret key (formally called a decryption key) or password can read it. Encrypted data is commonly referred to as ciphertext, while unencrypted data is called plaintext.

Is DES still used today? ›

Diethylstilbestrol (DES), also known as stilbestrol or stilboestrol, is a nonsteroidal estrogen medication, which is presently rarely used.

How was DES encryption broken? ›

In cryptography, the EFF DES cracker (nicknamed "Deep Crack") is a machine built by the Electronic Frontier Foundation (EFF) in 1998, to perform a brute force search of the Data Encryption Standard (DES) cipher's key space – that is, to decrypt an encrypted message by trying every possible key.

What encryption algorithms are used today? ›

DES, AES, and RSA are the three primary encryption types. A more recent 3DES is a block cipher that is still in use today. The Triple Data Encryption Standard (3DES) does exactly what its name says. For triple protection, it employs three independent 56-bit keys rather than a single 56-bit key.

What are the two 2 types of encryption algorithm? ›

There are two types of encryption in widespread use today: symmetric and asymmetric encryption. The name derives from whether or not the same key is used for encryption and decryption.

What is an example of a simple encryption algorithm? ›

One very basic symmetric encryption algorithm is known as the rotational cipher. In this algorithm, the sender simply "adds" the key to each character of the cleartext message to form the ciphertext. For example, if the key is 2, "A" would become "C", "B" would become "D", and so on.

What is DES and example? ›

DES stands for Data Encryption Standard. There are certain machines that can be used to crack the DES algorithm. The DES algorithm uses a key of 56-bit size. Using this key, the DES takes a block of 64-bit plain text as input and generates a block of 64-bit cipher text.

What is DES short for? ›

Department of Education and Science.

What is the key feature of DES? ›

DES is a block cipher that operates on data blocks of 64 bits in size. DES uses a 64-bit key 8 × 8 including 1 bit for parity, so the actual key is 56 bits. DES, in common with other block ciphers, is based around a structure called a Feistel Lattice so it is useful to describe how this works.

What is data encryption for dummies? ›

In simple words, encryption protects sensitive data from prying eyes by scrambling ordinary text (plaintext) into a form (ciphertext) that is impossible to read without the proper decryption key. An example of basic encryption is swapping each letter with the one that holds its opposite position in the alphabet.

How does modern encryption work? ›

How encryption works. Encryption works by encoding “plaintext” into “ciphertext,” typically through the use of cryptographic mathematical models known as algorithms. To decode the data back to plaintext requires the use of a decryption key, a string of numbers or a password also created by an algorithm.

What is the function of a data encryption algorithm? ›

Data encryption works by securing transmitted digital data on the cloud and computer systems. There are two kinds of digital data, transmitted data or in-flight data and stored digital data or data at rest. Modern encryption algorithms have replaced the outdated Data Encryption Standard to protect data.

How is DES different from AES? ›

The main difference between AES and DES ciphers is the size of the key used for encryption. AES uses key sizes of 128, 192, or 256 bits, which offers robust security. In contrast, DES uses a relatively small 56-bit key size, which makes it vulnerable to brute-force attacks using modern computing power.

What is the difference between RSA and DES? ›

As DES is secret key (single key) based algorithm suffers from key distribution and key agreement problems. But RSA use concept of private key and public key to achieve encryption and decryption process. Comparison result showed that RSA has better performance than DES.

Is 3DES symmetric or asymmetric? ›

In cryptography, Triple DES (3DES or TDES), officially the Triple Data Encryption Algorithm (TDEA or Triple DEA), is a symmetric-key block cipher, which applies the DES cipher algorithm three times to each data block.

What is the AES 128 algorithm? ›

The AES Encryption algorithm (also known as the Rijndael algorithm) is a symmetric block cipher algorithm with a block/chunk size of 128 bits. It converts these individual blocks using keys of 128, 192, and 256 bits. Once it encrypts these blocks, it joins them together to form the ciphertext.

Top Articles
Latest Posts
Article information

Author: Rev. Porsche Oberbrunner

Last Updated:

Views: 6012

Rating: 4.2 / 5 (73 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Rev. Porsche Oberbrunner

Birthday: 1994-06-25

Address: Suite 153 582 Lubowitz Walks, Port Alfredoborough, IN 72879-2838

Phone: +128413562823324

Job: IT Strategist

Hobby: Video gaming, Basketball, Web surfing, Book restoration, Jogging, Shooting, Fishing

Introduction: My name is Rev. Porsche Oberbrunner, I am a zany, graceful, talented, witty, determined, shiny, enchanting person who loves writing and wants to share my knowledge and understanding with you.