Encryption of sensitive information, and, more particularly, encryption of sensitive information using salts and/or keys selected based on the hash of the sensitive information; and data management of records of sensitive information by comparing current sensitive information with previously stored corresponding information.
Cloud-Based Applications
Cloud-based hosting providers, such as Amazon Web Services, Inc., Seattle, Wash. (“AWS”), provide servers, networking, firewalls, security appliances, and other infrastructure through a scalable cloud model by installing physical versions of those infrastructure elements in datacenters located around the world, and providing access to the infrastructure over the public internet by creating “virtual” versions of the elements. For example, an AWS server is a virtual interface, written in software, which has the characteristics of a physical server. Similarly, an AWS router and an AWS firewall are virtual versions of a physical router and physical firewall, respectively, with the same level of configuration and customization associated with an on-site, hardware system.
An important benefit of using a cloud-based solution is scalability, as it is easier to add server capacity than to install new physical hardware at an on-site datacenter. Other benefits include decreased maintenance costs, and redundancy. Most cloud providers host identical datacenters in different “regions,” where regions may be defined differently by different cloud providers, and allow customers to set-up their infrastructure in one or more regions. Data center regions may be geographic based or not.
Most of AWS's infrastructure provides additional redundancy within each region in case of failure within a region by creating multiple Availability Zones (“AZs”). Each region may be comprised of many AZs, each representing additional co-located datacenters in the same metropolitan area to minimize latency. AZs may use different power supply companies, and/or different network providers, etc., to prevent shared failure.
While AZs provide a good degree of redundancy, a common best practice is to also employ region redundancy when hosting business-critical information and/or applications in the cloud. Region redundancy in case of failure is the virtual equivalent of a disaster recovery process. If a physical datacenter were to flood, suffer a power failure or fire, or another such failure or breakdown, for example, data may be backed up and stored in backup storage devices.
Security
Computational security relies heavily on the concept of keys, which are used to encrypt and decrypt data and to ensure that data received over the internet has not been interfered with or intercepted in transport. A common method to ensure secure communication between two parties or servers, for example, is the use of RSA public-private key encryption. In RSA public-private key encryption, each party generates a private key, which is kept secret, and a public key, which may be shared. The public and private keys generated by each party (referred to as a “key pair”) have a computational relationship such that data encrypted with the public key can only be decrypted by the corresponding private key. The public and private keys may be both generated based on the same prime number, for example.
Using this model, if Bob wants to send a secure message to Alice, who has a public key and a computationally related private key, he does the following:
Bob asks Alice for her public key, or looks it up if already known;
Bob encrypts the message with Alice's public key, creating a secure message;
Bob sends the secure message to Alice; and
Alice decrypts the secure message using her private key, which only she should know.
Only Alice's private key can be used to decrypt Bob's message since it was encrypted using the corresponding, computationally-related public key.
A common approach to ensure secure storage of private keys and other sensitive data is to employ a cryptographic hardware device, such as a hardware security module (“HSM”). The HSM generates and stores keys, such as symmetric encryption keys that may be used to encrypt and decrypt data for clients. HSMs are inherently secure devices that use extensive hardening techniques to securely generate and store keys. The hardening techniques include never storing plaintext master keys on disk, not persisting them in memory, destroying a key if a tamper event is detected, and/or limiting the systems that can connect to the device, for example. As with other cloud infrastructure elements, AWS provides a “virtual” HSM or a key management service (“KMS”) that is backed by a hardware HSM in a given Amazon region datacenter to create and control key generation and data encryption/decryption based on the generated keys. Generated keys never leave their respective HSM or KMS, and can only be accessed by specific servers and authenticated users. A highly secure algorithm, such as an RSA key generation algorithm, may be used to generate the client keys by the KMS or the HSM, for example. As used herein, HSMs, KMSs, and other such devices and services are referred to as “cryptographic processing systems.”
Respective clients may send data to the KMS or HSM for encryption by one of the client encryption keys. The encrypted data is returned to the client. When the client desires that encrypted data be decrypted, the client sends the encrypted data to the KMS or HSM, which decrypts the data with the same client key used to encrypt the data, and sends the decrypted data to the client.
In accordance with a first embodiment of the invention, a method of encrypting sensitive information is disclosed, comprising hashing sensitive information by a hash function, and selecting a salt based, at least in part, on the hashed sensitive information. The selected salt is combined with the hashed sensitive information to yield combined sensitive information, which is encrypted and stored. The combined sensitive information may be stored in a secure database, for example. The combined sensitive information may be encrypted by a destructive, non-reversible encryption function, which may comprise an authentication code algorithm and an iterative encryption function.
Selecting the salt may comprise dividing the hashed sensitive information by a number of salts in a numbered list of salts, identifying a number of a respective salt in the numbered list of salts based on the remainder, and selecting the respective salt corresponding to the identified number. Prior to encrypting the sensitive information, the method may comprise generating a number of salt and forming the numbered list of salts. The salts in the numbered list are concatenated into a binary large object, which is sent to a cryptographic processing system for encryption with a key encryption key to form an encrypted binary large object. The encrypted binary large object may be stored in a database. The database may comprise a secure database, for example.
To decrypt the encrypted binary large object, the object is retrieved and sent to the cryptographic processing system for decryption. The decrypted binary large object is parsed into respective salts, formed into the numbered list of salts, and stored in a volatile memory. The binary large object may be retrieved by a processing device after booting of the processing device.
The sensitive information may comprise a first portion and a second portion, where the first portion is hashed, combined with the selected salt, encrypted, and stored. The sensitive information may comprise received plain text card data, for example, the first portion of the plain text card data may comprise a personal account number in the plain text card data, and the second portion of the plain text card data may comprises other data in the plain text card data. The other data may comprise cardholder name, expiration date, a CVV, a PIN verification Key, a PIN Verification value, a card verification value, a card verification code, and/or EMV information, for example. The second portion of the sensitive information may also be hashed and encrypted.
In accordance with a second embodiment of the invention, a system is disclosed comprising storage and a processing device configured to perform the operations of the first embodiment.
In accordance with a third embodiment of the invention, a method of encrypting information is disclosed comprising hashing sensitive information by a hash function and selecting an encryption key based, at least in part, on the hashed sensitive information. The hashed sensitive information is encrypted the selected encryption key and stored. The encryption key may comprise and AES key, for example, and may be stored in a secure database, for example. Selecting the encryption key may comprise dividing the hashed sensitive information by a number of encryption keys in a numbered list of encryption keys, identifying a number of an encryption key in the numbered list of encryption keys, based on the remainder, and selecting the encryption key corresponding to the identified number. Prior to encrypting the sensitive information, a number of encryption keys may be generated and sent to a cryptographic processing system for encryption with a key encryption key. The encrypted keys may be stored in a database.
The sensitive information may comprise first and second portions, and the first portion may be hashed and encrypted with the selected encryption key. In one example, the sensitive information comprises received plain text card data including a personal account number and other data, where the first portion of the plain text card data comprises the other data and the second portion of the plain text card data comprises the personal account number. The first portion may comprise a cardholder name, expiration date, a CVV, a PIN verification Key, a PIN Verification value, a card verification value, a card verification code, and/or EMV information, for example. The second portion of the sensitive information may also be hashed and encrypted.
In accordance with a fourth embodiment of the invention, a system is disclosed comprising storage and a processing device configured to perform the operations of the third embodiment of the invention.
In accordance with a fifth embodiment of the invention, a method of updating a record comprising encrypted first sensitive information, the method comprising decrypting received encrypted second sensitive information related to the record and retrieving the record including the encrypted first sensitive information, from a database. The encrypted first sensitive information in the retrieved record is decrypted and compared with corresponding decrypted first sensitive information from the record. If the decrypted second sensitive information and the corresponding decrypted first sensitive information are different, the decrypted first sensitive information is updated based, at least in part, on the decrypted second sensitive information, the updated first sensitive information is encrypted, and the record including the encrypted updated first sensitive information is stored in the database.
The record may comprise first sensitive information contained in a field and the method may further comprise comparing the decrypted second sensitive information to the decrypted first sensitive information in the field, and updating the decrypted first sensitive information stored in the field based, at least on part, on the decrypted second sensitive information. The first encrypted sensitive information may comprise multiple types of information in first respective fields, and the second encrypted sensitive information comprises multiple types of information in second respective fields. The method may then further comprise identifying a first field in the first decrypted sensitive information, identifying a second field in the second decrypted sensitive information corresponding to the first field, comparing information in the second field to information in the first field, and updating the information in the first field based, at least in part, on the information in the second field. The record may be associated with an identifier in the database that is a portion of the first sensitive information. The method may then further comprise parsing the decrypted second information for an identifier, and retrieving the record based on the identifier.
In one example, the first sensitive information comprises encrypted plain text card data stored in the record and the second sensitive information comprises received second encrypted plain text card data for a card received from a merchant location. The method may then further comprise decrypting the encrypted plain text card data, retrieving a private key for the merchant location, from memory, and decrypting the encrypted plain text card data with the retrieved private key. The personal account number may be parsed from the decrypted plain text card data and the record retrieved based, at least in part, on the parsed personal account number.
In accordance with a sixth embodiment of the invention, a system is disclosed comprising a database and a processing device configured to perform the operations of the fifth embodiment of the invention.
In an example of an embodiment of the invention, card numbers, also referred to as personal account numbers (“PANs”) of payment cards, such as credit cards, debit cards, and EMV cards, for example, are encrypted by the processing center by the addition of a selected one of a plurality of salts to the card number to form a combination that is encrypted, such as by a destructible non-reversible function. The salts or a combination of the salts are encrypted by the KMS or HSM and stored in a secure database by the processing center. Decrypted salts are only stored in volatile memory.
In another example, card information on cards, including the card number and other card information, such as the cardholder name, card expiration date, card verification value (“CVV”), and other information that may be provided on magnetic tracks of the card, as described in ISO/IEC 7813, or on an EMV card, for example, is also encrypted. EMV is a technical standard for smart payment cards, which include an integrated circuit or chip embedded into the card. EMV stands for Europay, MasterCard, and Visa, who created the standard. Smart payment cards are referred to as “EMV cards,” “chip cards,” or integrated circuit (“IC”) cards or ICCs, for example. The card information from the magnetic tracks or EMV cards may be encrypted by a selected one of a plurality of a secure keys, such as an AES key, for example.
To further protect the encrypted data in accordance with embodiments of the invention, the encrypted data is stored by the client in a secure database with limited access, and decrypted data is only temporarily stored in volatile memory, such as random access memory (“RAM”). Additional layers of protection may be provided to protect sensitive data, such as salts, additional encryption keys, and additional encryption functions. Embodiments of the invention may be used to encrypt confidential information and documents such as card numbers (credit, debit, and gift cards, for example), transaction data, and keys, such as private keys, for example. The private keys may be RSA private keys, for example. Embodiments of the invention may also be used to protect other types of sensitive or confidential information in other contexts, such as passwords, medical records, emails, and photographs and posts on social media, for example. Embodiments of the invention may also be used with sensitive health care data.
Embodiments of the invention may be used in cloud-based systems or non-cloud based systems. As discussed above, hardware security modules (“HSMs”), and key management services (“KMS s”), and other such devices and services, are referred to herein as “cryptographic processing systems.”
A payment application (“Payment App”) 136 is stored in the memory 134 of the PIN pad 130. The payment App 136 controls operation of the processor 132 of the PIN pad terminal 130 including encrypting purchase data and payment information, transmitting the encrypted data and information to the processing center 150, and providing a personalized checkout experience including the identification of relevant loyalty offers/discounts that could be calculated prior to payment authorization, for example. The Payment App 136 may be downloaded to the PIN pad terminals 130 of the Merchant 1 after the Merchant 1 registers with the processing center 150, as discussed further below. The PIN pad terminals 130 may be a Verifone MX915 or Verifone MX925, available from Verifone Holdings, Inc., San Jose Calif., or an Ingenico iSC250 or Ingenico iSC480, available from Ingenico Solutions, Rowlands Castle, England, for example.
Returning to
After validation, the payment processor 50 routes the data to the card brand 165 of the card, such as Visa or MasterCard, for example, also in an encrypted HTTPS envelope, for verification of the card number and expiration date, transaction approval/denial, and other operations known in the art. Only one block 165 is shown to represent the multiple card brands, for ease of illustration. If the card data is verified by the card brand 165, the card and transaction data are routed by the card brand to the bank 168 that issued the credit card to check credit limits and perform other operations known in the art, also in an encrypted HTTPS envelope. Only one block 168 is shown to represent multiple possible issuing banks, for ease of illustration.
If the issuing bank 165 approves the transaction, it sends an authorization or approval message back along the chain, to the card brand 165, payment processor 160a, processing center 150, to the respective PIN pad 130 of the Merchant 1, via the network 110 in each step, in respective encrypted HTTPS envelopes. The PIN pad 130 receiving the authorization then accepts the payment via the card and completes the transaction. If the card brand 165 or the issuing bank 168 does not verify the card data or authorize the transaction, respectively, a denial message is returned along the same chain to the payment processor 160a and processing center 150, via the network 110, to the respective PIN pad 130. The PIN pad 130 will not then accept the card payment. An alternative form of payment, such as another card, may then be requested.
As shown in
In accordance with an embodiment of the invention, a key management service (“KMS”) 200 provided by the cloud hosting provider is used to generate one or more keys to encrypt sensitive information provided by the SCDE server 180 of the processing system 150. The KMS 200 may be provided part of a service 200, such as the KMS provided by Amazon Web Services (“AWS”), for example. Other cloud hosting providers include Microsoft, Inc., Redmond, Wash., and Google, Inc., Mountain View, Calif., for example.
The KMS 200 from AWS is a virtualized version of a cryptographic hardware device, such as hardware security module (“HSM”), where the processing device and secure storage are located. The KMS 200 uses at least one processing device and a secure database (not shown), such as a processing device and secure database of an HSM, to generate and secure, store one or more encryption keys for clients. The KMS 200 uses at least one processing device and a secure database (not shown) to generate and secure, store one or more encryption keys for clients. The KMS 200 may communicate with the network 110 via an application interface (not shown), for example, as is also known in the art. While the KMS 200 is referred to throughout this description, embodiments of the invention may also be implemented with any virtual or non-virtual cryptographic processing system that generates and securely stores encryption keys, such as an HSM, for example.
In one example, to provide extra security for the encrypted data stored in the secure database 300, only the processing device 280 can access the secure database 300, and only the applications server 170 can access the processing device 280. To further protect decrypted sensitive information, such information may only be stored in RAM 290 or other volatile memory and may be deleted after use. The processing device 280 may use the RAM 290 or other such memory (not shown) while performing calculations and other functions, as described below. The secure database 300 may be a MongoDB available from MongoDB, Inc., New York, N.Y., for example. The MongoDB database is a document-oriented, non-relational non-structured query language (non-SQL or NoSQL) database. Other types of databases, such as an SQL database or a relational management database, may also be used. Examples of SQL relational databases include MySQL, an open source relational database system available from MySQL AB, Sweden, for example, and PostgreSQL, an object relational database management system available from the PostgreSQL Global Development Group, for example. Any of these databases may be made secure by limiting access to the database, for example, as described above.
In accordance with an embodiment of the invention, sensitive information is encrypted by the KMS 200 with a key, referred to a key encrypting key (“KEK”) that is generated by the KMS. The KEK is shown schematically within the KMS 200 in
To encrypt the sensitive information (RES), the RES is sent by the processing device 280 of the SCDE 180 to the KMS across the network 110, as indicated by line 1. The RES may be sent in a secure envelope or package, such as via a secure HTTP (“HTTPS”) connection along a transport layer security version 1.2 (“TLS 1.2”), for example. The RES is encrypted by what is referred to as an encryption/decryption engine 204 of the KMS 200 with the KEK, as indicated by line 2. It is noted that the encryption/decryption engine is a functional representation of the operation of the KMS 200 and is not meant to show the exact operation of the KMS 200. How the KMS 200 encrypts and decrypts data based on the KEK and KEKR are not aspects of the present invention and are known in the art.
The encrypted RES is now referred to as RES′ where (′) indicates that the RES is encrypted. The RES′ is associated with a reference KEK (“KEKR”) that identifies the KEK 202 used to encrypt the respective RES, as discussed above. The RES′ and the KEKR are returned to the processing device 280 of the SCDE 180 (via the network 110 and applications server 170, which are not shown in this view), along line 3.
The received RES′ and the associated KEKR are sent by the processing device 280 of the SCDE 180 to the secure database 300, for storage, as indicated by line 4. When the RES (non-encrypted data) is needed, as discussed below, the RES′ (encrypted RES) and associated KEKR are retrieved from the secure database 300 by the processing device 280, as indicated by line 5, and sent to the KMS 200, as indicated by line 6. It is noted that when the processing center 150 has only requested one (1) KEK, it may not be necessary to return the KEKR to the KMS 200 since the KMS can identify the one KEK based on the processing center that provided the provided the data to be decrypted. Returning the KEKR with the RES′ in such circumstances is, therefore, optional. If the processing center 150 has requested multiple KEKs, to encrypt different types of RES s, for example, it would be necessary to send the respective KEKR with the RES′ to be decrypted.
In this example, the KEK 202 used to initially encrypt the RES is identified by the KMS 200 based on the KEKR, and the RES′ is decrypted by the encryption/description engine 204 based on the KEK 202 to generate the RES, as indicated by line 7. The decrypted RES′ is returned to the processing device 280 of the SCDE 180, as indicated by line 8, and stored in the RAM 290, as indicated by line 9, via the network 110 and the applications server 170.
The RES is retrieved from the RAM 290 when needed by the SCDE 180. If the processing center 150 suffers a power failure or other catastrophic failure, for example, the RES is lost, protecting the unencrypted sensitive data. As noted above, the corresponding encrypted RES (RES′) is maintained in the secure database 300, in an encrypted, secure form.
In one example of the card payment processing environment of
Merchant Registration
The processing center 150 then generates a public/private key pair for the Merchant 1, in Step 420. In one example, the public/private key pair is generated by an RSA generation algorithm, such as a 2048-bit RSA encryption algorithm run by the processing device 280 of the SCDE 180. RSA encryption algorithms, including a 2048-bit RSA encryption algorithm, are known in the art. The corresponding public key of the Merchant 1 is also signed by a Certificate of the processing center 150, which also acts as a trusted Certificate Authority.
A unique merchant ID and other credentials are also generated, as is known in the art, and sent to the Merchant 1, in Step 430. If the merchant has multiple stores, a respective store ID may be generated for each store. In addition, the Merchant 1 assigns terminal IDs to each PIN pad terminal 130. Terminal IDs are used by the processing center 150 to determine the PIN pad terminal 130 that sent the encrypted HTTPS envelope requesting approval/denial of the payment so that the approval or denial can be sent back to the proper terminal.
The Merchant logs into the website of the processing center 150, authenticates itself using the merchant ID and credentials previously assigned by the processing center, and requests the Payment App 136 from the processing center. If the Merchant 1 is authenticated, the Payment App 136, which includes a Certificate of the processing center 150, is downloaded to the merchant PIN pad terminals 130, in Step 440.
After the Payment App 136 is downloaded to a respective PIN pad terminal 130, the PIN pad terminal requests the merchant public key. The public key and signed certificate are downloaded to the PIN pad terminal 130, in Step 450. The PIN pad terminal 130 confirms that the public key has been received by a trusted source, by comparing the certificate provided in with the Payment App 136 to the Certificate received with the public key. If there is a match, the PIN pad terminal 130 accepts the public key.
The public key, Payment App 136, and Merchant ID may be downloaded to the PIN pad terminals 130 via the network 110, in secure HTTPS envelopes, as described above, for example. If the merchant has multiple stores, then the store ID for the store in which the PIN pad 130 will be located may also be loaded onto the respective PIN pad 130.
To securely store the merchant private key, the private key is treated as an RES that is sent to the KMS 200 for encryption, via the applications server 170 and the network 110, in Step 460. The KMS 200 may encrypt the merchant private key with the KEK 202 that has been generated by the KMS for the processing center 150. The encrypted merchant private key, also referred to as a merchant region encrypted secret (“merchant RES′”), is returned to the processing center 150 with an associated KEKR as discussed with respect to
The merchant RES′ and the KEKR are received by the processing center 150 from the KMS 200, in Step 470. The merchant RES′ and the KEKR are stored in the secure database 300, in Step 480 in association with the merchant ID.
It is noted that Steps 460-480 may take place before, during, or after Steps 430-450.
During a transaction, The PIN pad 130 encrypts transaction data and card data with the merchant public key and sends the encrypted data to the processing center 150. The processing center 150 decrypts the encrypted information with the merchant's private key, as described in more detail below.
The merchant RES′ is sent to the KMS 200 for decryption, along with the KEKR, via the network 110, in Step 500. The merchant RES′ and KEKR are sent in a secure HTTPS envelope, for example, as discussed above. The merchant RES′ is decrypted by the KMS 200 based on the KEK identified by the KEKR and sent back to the processing center 150 via the network 110. The decrypted merchant RES (merchant private key) is received from the KMS in Step 510 and stored in the RAM 290 in Step 520. The merchant RES (private key) is now available for use in subsequent processing transactions.
In accordance with another embodiment of the invention, key rotation is facilitated and security is further improved by periodically generating a new public/private key pairs. The new key pair is generated by the processing device 280 as described with respect to Step 420 of
Card Number Encryption and Decryption
Card numbers, also referred to personal account numbers (“PANs”), are highly sensitive information. In accordance with an embodiment of the invention, PANs are encrypted by a multi-level encryption process for higher security, based on salts, keys, and the KEK. Plain text card data, which includes the PAN and other card related information, such as the Card holder name, expiration date card verification value (“CVV”), PIN Verification Key, Pin Verification Value, card verification code, and/or EMV specific card information, for example, is also highly sensitive information. Card data that may be included in the plain text card data is described in ISO/IEC 7813, for example. EMV specific card information is described in ISO/IEC 7816 and EMV Books 1-4, available from EMVCo LLC, for example. Plain text card data is encrypted via keys, such as AES keys, and the KEK.
In the present embodiment of the invention, a first predetermined number of salts and a second predetermined number of keys, are generated by the processing device 280 of the SCDE 180 during inception of the processing system 150 or at a later time, in Step 610. In this example, the first predetermined number of salts is 1009 salts, and the second predetermined number of keys is 379, which are large prime numbers. Other numbers of salts and AES keys may be generated and used.
In one example, the salts may be any length and may be non-random. In another example, the salts are cryptographically strong, as defined in FIPS 140-2, for example. In this example, each salt is 512 random bytes generated by a cryptographically secure random number generator, such as Secure Random in Java available from Oracle, Inc., for example.
The keys may be AES keys, such as 256-bit AES keys, for example. As discussed above, an AES key is an advanced encryption standard (“AES”) key, such as a 256-bit AES key, for example. The AES keys could also be 512-bit AES keys. Generation of a 256 and 512-bit AES keys are known in the art. Other highly secure encryption techniques could also be used to encrypt the card information, such as Triple DES (3DES), for example, which is also known in the art.
The salts are concatenated into a binary large object (“blob”), where one salt follows the next, by the processing device 280, in Step 620. The blob is sent to the KMS 200, via the applications server 170 and the network 110, for encryption with the KEK 202 or another KEK, for example, in Step 630. The KMS 200 encrypts the blob to form a blob RES′ and returns the blob RES′ with a KEKR to the processing device 280, via the network 110 and the applications server 170. The blob RES′ and the KEKR are received by the processing device 280 in Step 640 and stored in the secure database 300, in Step 650.
The AES keys are also sent to the KMS 200 for encryption, through the applications server 170 and the network 110, in Step 660. The AES keys are each encrypted by the KMS 200 with the KEK 202 or another KEK to form AES key RES s′, which are received back from the KMS, through the network 110 and the applications server 170, in Step 670. The AES key RESs′ and KEKRs are also stored in the secure database 300, in Step 650.
Decrypting RES′s for Use
As noted above with respect to
The processing device 280 of the SCDE 180 is booted (restarted) in Step 710. Booting may take place when a new version of the software running the processing device 150 is loaded, or when the software is updated, to improve system operation, for example. After boot up, the processing device 280 sends a call to the secure database 300 to retrieve all the merchant RES′, blob RESs′, and AES key RESs′, along with the associated KEKR, in Step 720. As noted above one or more KEKRs may need to be retrieved.
The merchant RES′, blob RESs′, and AES key RES′s, along with the associated KEKR, are received by the processing device 280, in Step 730, and sent through the applications server 170 and the network 110 to the KMS 200 for decryption based on the KEK 202 identified by the KEKR, in Step 740.
The decrypted RESs are received by the processing device from the KMS 200, via the network 110 and applications server 170, in Step 750. The blob RES, which is the concatenated salts, is parsed to separate the original, individual salts, in Step 760. The concatenated salts may be parsed based on the known lengths of each salt, for example.
The individual salts, the merchant RESs, and the AES key RESs are stored in volatile memory, such as the RAM 290, by the processing device 280, in Step 770. The salt RESs and AES key RESs may be stored in respective lists in the RAM 290, where each entry in the respective list is numbered consecutively, or in an ordered list, for example. The ordered list may comprise a numbered listing or table, in which each salt is correlated with a respective number, here 0-1008, respectively, and each AES key is correlated with a respective number 0-378. The salts, merchant RESs, and AES key RESs are now available for use during the processing of payment transactions, and to securely store card numbers and other card information, for example.
As discussed herein, after a customer swipes their card or inserts their EMV card in the PIN pad terminal 130, the PIN pad generates a secure, encrypted HTTPS envelope containing the card number (personal account number (“PAN”)), along with other data including the transaction amount, a merchant ID, a store ID, PIN pad terminal ID, cardholder's name, card expiration date, and optionally customer's PIN Verification Key, PIN Verification Value, card verification value (“CVV”), or card verification code, and other information known in the art.
The data is encrypted by the PIN pad terminal 130 based on the merchant's public key, in accordance with an embodiment of the invention. Other encryption techniques could be used. Also included in the secure envelope is the merchant ID. The merchant ID is not encrypted by the public key, in this example. The PIN pad terminal 130 sends the HTTPS envelope to the processing center 150 via the network 110.
It is then determined whether the merchant RES is stored in the RAM, in Step 825. If the merchant RES is stored in the RAM 290, (Yes in Step 825), the merchant RES is retrieved from the RAM 290 by the processing device 280, in Step 830. If the merchant RES is not found in the RAM (No in Step 825), then the processing device 280 searches the secure database 300 for the encrypted merchant RES′, in Step 840. As noted above, the first time a transaction is received from a merchant after registration, the unencrypted merchant RES (private key) is not yet stored in RAM 290. Only the encrypted merchant RES′ (private key) is stored in the secure database 300. The processing device 280 may check the secure database for the encrypted merchant RES by sending the merchant ID and a request for the encrypted merchant RES corresponding to the merchant ID, to the secure database 300.
If the processing device 280 determines that the merchant RES′ is not stored in the secure database, then the merchant is not registered with the processing center 150 or there is another problem. The transaction cannot be processed and the method ends in Step 850.
If the processing device 280 determines that the merchant RES′ is stored in the secure database, merchant RES′ is retrieved in Step 830. The merchant RES′ is then sent to the KMS 200, decrypted, and, stored in the RAM 290, as described in Steps 500-520 in
Continuing to
The plain text card data is parsed by the processing device 280 to identify the PAN by the processing device 280, in Step 855. The identified PAN is encrypted by the processing device 280 to form an encrypted PAN or encrypted card ID, in Step 860. An example of an encryption process in accordance with an embodiment of the invention is described below with respect to
The processing device 280 searches the secure database 300 for the encrypted card ID to determine whether the encrypted card ID is already stored in the secure database 300, in Step 865. If Yes, then housekeeping functions may optionally be performed, in Step 870. An example of housekeeping in accordance with an embodiment of the invention is described in more detail in
If the encrypted card ID is not found in the secure database 300 in Step 860, then the plain text card data, including the PAN, is encrypted, in Step 875. An example of plain text card data encryption in accordance with an embodiment of the invention is described below with respect to
The encrypted card ID and corresponding encrypted plain text card data (also referred to as “encrypted card data”) is stored in the secure database, in Step 880. The stored encrypted card ID is used as a pointer to the location of the corresponding encrypted card data in the secure database 300, which facilitates retrieval of the encrypted card data. The encrypted card ID is also stored in the transactions database 270 (see
A salt is selected for addition to the hashed PAN by determining a remainder of the hashed PAN (Step 910) divided by the first predetermined number of salts, here 1009, in Step 920. In other words, in this example, the processing device 280 calculates hashed PAN modulo 1009. The salt in the list or table of salts corresponding to the number of the remainder is selected in Step 930. For example, if the remainder is 10, then the tenth salt or the salt numbered 10 in the list is selected. The selected salt is retrieved, in Step 940.
The retrieved salt is combined with the PAN, in Step 950, to add entropy to the PAN. The salt may be added to the end of the PAN, for example. Alternatively, the salt may be added to the beginning of the PAN. In another example, a part, such as half, of the salt may be added to the beginning of the PAN and the remainder may be added to the end of the PAN.
The combination of the PAN and the salt is encrypted by the processing device 280, in Step 960. The combination of the PAN and the salt may be encrypted by a destructive, non-reversible encryption function, for example. A destructive function sufficiently transforms/destroys the format and structure of the original data so that it cannot be recreated based on the encrypted data, with current technology, as is known in the art. A non-reversible function here means that it is not feasible to reverse the function to decrypt the data with current technology, as is known in the art. An example of a destructive, non-reversible encryption function that may be used is the password-based key derivation function 2-key hashed message authentication code-secure hash 256 algorithm (“PBKDF2-HMAC-SHA256”), for example. SHA 256 is a hash function known in the art. Other hash functions, such as MD5 may be used instead of SHA 256, for example. HMAC-SHA 256 (or other such hash function) applies an authentication code algorithm to the hashed function. Other authentication codes could be used, which are also known in the art, such as LMAC and PMAC. PBKDF2 is an iterative encryption function that has been used to protect passwords. Other iterative encryption functions that may be used include crypt or scrypt, for example, which are also known in the art. The method of
Housekeeping
A record corresponding to the encrypted card information received in Step 815 of
The AES key used to encrypt the retrieved encrypted card data is identified by the processing device 280, in Step 1120. In this example, the key is identified from the AES key list based on the hashed PAN modulo 379, as discussed above with respect to
Different types of data in the plain text card data in located in different fields, as is known in the art. For example, the expiration date, cardholder name, CVV, and other types of information discussed above are located in different, respective fields. The processing device 280 parses the decrypted plain text card data from the record, and the decrypted plain text card data from the decrypted card information, in Step 1140, to separate the information in the respective fields. The processing device 280 may use a card template to locate respective fields, as is known in the art. All fields may be checked or only fields that could have changed, such as the expiration date, cardholder name, and certain EMV information, such as EMV processing instructions from an issuing bank or card brand, for example. The provision of processing instructions on an EMV card by an issuing bank via scripts is described in U.S. patent application Ser. No. 15/699,090, which was filed on Sep. 8, 2017, is assigned to the assignee of the present invention, and is incorporated by reference herein. The card brand may also provide processing instructions.
The information in the respective fields of the decrypted card data is then compared to the information in the corresponding fields of the plain text card data of the record, in Step 1150. The fields may be compared, field by field. If they are the same (No in Step 1150), then the stored card data does not need to be updated, and the process returns to Step 875 of
If the information in any field in the plain text card data does not match the information in the corresponding field of the decrypted card data (Yes in Step 1160), then the processing device 280 replaces the card data stored in the field of the plain text card data by the corresponding information in the corresponding field of the plain text card data, in Step 1180. For example, if an expiration date of the card has been recently changed, but the card number (PAN) has not been changed, then the expiration date in the expiration date field of the plain text card data will not match the expiration date in the corresponding field of the decrypted card data. The expiration data field of the plain text card data is then updated to the expiration date of the current plain text card data. A cardholder name may also change without changing the PAN, for example.
The plain text card data of the record is then encrypted, as described above in Step 875 of
Embodiments of the invention may be used to update other types of encrypted records stored in a database, including health or medical records, for example. Updateable fields in medical records may include a patient's name, address, medications, weight, and/or diagnosis, for example. A medical template may be used to locate respective fields.
Region Redundancy
As discussed above, redundancy in case of a failure with an availability zone (AZ) may be provided by using different power supply companies, using different network providers to back up data, and storing the data in other storage devices in other AZs, for example. In accordance with an embodiment of the invention, redundancy across regions is provided through the use of one or more respective KMSs in multiple regions.
In the example of
The processing device 280 communicates with KMS1, KMS2, and KMS3 via the applications server 170 and the network 110. Redundancy across Region 1, Region 2, and Region 3 is provided in this example by the processing device 280 sending each merchant RES, blob RES, and AES key RESs to the KMS1, KMS2, and KMS3 of each region for encryption with the respective KEK1, KEK2, and KEK3 to form Merchant RES1′. RES2′, RES3′, blob RES1′, RES2′, RES3′, and AES key RES1s′, RES2s′, RES3s′, respectively. If a respective RES+′ cannot be decrypted by the KMS that encrypted it, another KMS may be requested to decrypt a corresponding RES′ that was encrypted by that KMS.
In one example, encrypted merchant RES1′, RES2′, RES3′ blob RES1′, RES2′, RES3′, and AES key RES1′s, RES2′s, RES3′s based on each KEK1, KEK2, KEK3 are received by the processing system 150 and stored. If the KMS1 is down or otherwise not responsive to requests to decrypt RES1′s with KEK1, for example, then RES2′s or RES3′s may be sent to KMS2 and/or KMS3 in Regions 2 and 3 for decryption based on KEK2 or KEK3, respectively. The processing center 150 may thereby continue to operate, even if KMS1 and KMS2 go down.
The blobs KMS1, KMS2, KMS3, encrypted by KEK1, KEK2, KEK3, respectively, are referred to as encrypted blob RES1′, RES2′, RES3′ respectively, in Step 1310. The AES keys encrypted by KMS1, KMS2, KMS3 with KEK1, KEK2, KEK3 are referred to as AES key RES1′s, RES2′s, and RES3′s, and KEK1R, KEK2R, KEK3R, and are received by the processing device 280 from each KMS1, KMS2, KMS3, via the network 110 and applications server 170, in Step 1320. Respective encrypted blobs RES1′, RES2′, RES3′ are combined by the processing device 280 into a single object and the object is stored by the processing device 280 in the secure database 300, in association with the KEKR1, KEKR2, KEKR3, in Step 1330.
Each AES key RES1′, RES2′, RES3′ for a respective AES key are also formed by the processing device 280 into respective objects and stored by the processing device 280 in the secure database 300, in Step 1330, in association with the KEKR1, KEKR2, KEKR3.
In Step 1530, the RES 1′s and associated KEKR1s are sent by the processing device 280 to KMS1 for decryption, via the applications server 170 and the network 110. In this example, KMS1 and the processing center 150 are both in Region 1, and the KMS1 is the nearest neighbor to the processing system 150.
The processing device 280 waits a predetermined period of time to receive the decrypted merchant, blob, and AES key RES1s, in Step 1540. If the decrypted RES1s are received within the predetermined period of time, (Yes in Step 1540), the merchant, blob, and AES key RES1s are stored in the RAM 290, in Step 1550. If not (No in Step 1540), then KMS1 may have failed. Decryption requests in this example are sent to KMS1 first because KMS1 is the closest KMS geographically to the processing center 150. Communication between the processing center 150 and the KMS1 is therefore faster than the communication between the processing center and KMS2 and KMS3.
The processing device 280 then sends the retrieved RES2′s to KMS2 and associated KEKR2s, via the applications server 170 and the network 110, for decryption, in Step 1560. In this example KMS2 is the next nearest neighbor after KMS1. The processing device 280 waits a predetermined period of time to receive the decrypted merchant, blob, and AES key RES s, in Step 1570. If the decrypted RES2s are received in the predetermined period of time, then the merchant, blob, and AES key RES2s are stored in the RAM 29, in Step 1580.
If not, then KMS2 may have failed and the processing device 280 sends the retrieved RES3′s and associated KEKR3s to KMS3, in Step 1590. The processing device 280 waits a predetermined period of time to receive the decrypted merchant, blob, and AES key RES3s, in Step 1600. If the merchant, blob, and AES key RES3s are received in the predetermined period of time, then the merchant, blob, and AES key RES3s are stored in the RAM 290, in Step 1610. If not, then the process ends in Step 1620. Such an occurrence is very unlikely, but possible.
In the example of
In another example, the respective RES1′, RES2′, RES3′ are sent to the KMS1, KMS2, KMS3, respectively, based on the result of a random number generator, for example. The random number generator may generate a list of the KMSs in a random order and the processing device 280 then checks the list to determine which KMS to contact first, second, and third, etc. Other selection schemes may be used. The process of
Examples of implementations of embodiments of the invention are described above. It would be apparent to one of ordinary skill in the art that modifications may be made to the examples above without departing from the spirit and scope of the invention, which is described in the following claims.
The present application is a divisional of and claims benefit of U.S. patent application Ser. No. 15/788,739, filed on Oct. 19, 2017, entitled “Systems and Methods for Data Management and the Use of Salts and Keys in Data Encryption/Decryption”, which claims the benefit of U.S. Provisional Patent Application No. 62/410,148, filed on Oct. 19, 2016, and is assigned to the Assignee of the present invention, and is incorporated by reference herein.
Number | Name | Date | Kind |
---|---|---|---|
6993503 | Heissenbuttel et al. | Jan 2006 | B1 |
8667568 | Schneider | Mar 2014 | B2 |
8762268 | Wall et al. | Jun 2014 | B2 |
9020151 | Chen et al. | Apr 2015 | B1 |
10013431 | Luthra et al. | Jul 2018 | B2 |
20020111919 | Weller et al. | Aug 2002 | A1 |
20040078775 | Chow et al. | Apr 2004 | A1 |
20050159974 | Moss et al. | Jul 2005 | A1 |
20080165006 | Phillips | Jul 2008 | A1 |
20090063354 | Sheets | Mar 2009 | A1 |
20100011221 | Lin et al. | Jan 2010 | A1 |
20110264499 | Abendroth et al. | Oct 2011 | A1 |
20130152180 | Nair et al. | Jun 2013 | A1 |
20130304642 | Campos | Nov 2013 | A1 |
20140006341 | Lopulalan | Jan 2014 | A1 |
20140012701 | Wall et al. | Jan 2014 | A1 |
20140075464 | McCrea | Mar 2014 | A1 |
20140115666 | Garcia Morchon et al. | Apr 2014 | A1 |
20140156535 | Jabbour et al. | Jun 2014 | A1 |
20140207575 | Freed-Finnegan et al. | Jul 2014 | A1 |
20140222668 | Wall et al. | Aug 2014 | A1 |
20150154634 | Chiu et al. | Jun 2015 | A1 |
20150186668 | Whaley | Jul 2015 | A1 |
20150207880 | Jin et al. | Jul 2015 | A1 |
20160232362 | Conway | Aug 2016 | A1 |
20160269392 | Arumugam | Sep 2016 | A1 |
20180034787 | Kamaraju et al. | Feb 2018 | A1 |
20180068303 | Wall et al. | Mar 2018 | A1 |
20180109508 | Wall et al. | Apr 2018 | A1 |
20180167204 | Wall et al. | Jun 2018 | A1 |
20180307704 | Luthra et al. | Oct 2018 | A1 |
Number | Date | Country | |
---|---|---|---|
62410148 | Oct 2016 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 15788739 | Oct 2017 | US |
Child | 16828847 | US |