# US 10,958,638 B2 · Securely sharing confidential information in a document

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,958,638 B2
- Document ID: US10958638B2
- Status: Granted
- Kind: B2
- Application number: 16/426,664
- Filed: 2019-05-30
- Published: 2019-09-12
- Granted: 2021-03-23
- Earliest claimed: 2017-03-07
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Masashi Doi; Kenya Ishimoto; Nobuyuki Yoshifuji
- Web page: https://patentgrep.com/patent/US10958638B2

## CPC

- H04L 63/083: {using passwords (cryptographic mechanisms or cryptographic arrangements for entity authentication using a predetermined code H04L9/3226)}
- G06F 21/6245: {Protecting personal data, e.g. for financial or medical purposes}
- H04L 9/0863: {involving passwords or one-time passwords (network architectures or network communication protocols for using one-time keys in a packet data network H04L63/067)}
- H04L 9/0866: {involving user or device identifiers, e.g. serial number, physical or biometrical information, DNA, hand-signature or measurable physical characteristics}
- H04L 63/0428: {wherein the data content is protected, e.g. by encrypting or encapsulating the payload}
- H04L 63/105: {Multiple levels of security}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, a computer program product, and a computer system for securely sharing confidential information in a document. A first computer sets one or more confidential attributes of the confidential information in the document and creates metadata of the confidential information. The first computer creates a first file including the confidential information and the metadata. The first computer creates a second file including non-confidential information in the document and the metadata; the metadata in the second file is as a reference to the confidential information. The confidential information in the first file is displayed by a second computer at a confidential information visibility level in accordance with an authorization level of an authorized user of the second computer. The second file is displayed at a visibility level without showing the confidential information and is accessible by all users.

## Claims

### Claim 1

A method for securely sharing confidential information in a document, the method comprising:
setting, by a first computer, one or more confidential attributes of the confidential information in the document, the one or more confidential attributes including one or more visibility levels of the confidential information and one or more authorization levels of access to the confidential information;
creating, by the first computer, metadata of the confidential information, the metadata including information of the one or more confidential attributes;
creating, by the first computer, a first file including the confidential information and the metadata;
creating, by the first computer, a second file including non-confidential information in the document and the metadata, the metadata in the second file being as a reference to the confidential information;
generating, by the second computer, a hash value from the second file;
determining, by the second computer, whether a password has been entered during encryption of the confidential information;
in response to determining that the password has been entered during the encryption of the confidential information, requesting, by the second computer, the authorized user of the second computer to enter the password, and creating, by the second computer, a key for decryption, by combing the hash value and the password;
in response to determining that no password has been entered during the encryption of the confidential information, creating, by the second computer, the key for the decryption, based on the hash value;
decrypting, by the second computer, with the key for the decryption, encrypted confidential information in the first file;
wherein the confidential information in the first file is displayed by a second computer at a confidential information visibility level in accordance with an authorization level of an authorized user of the second computer; and
wherein the second file is displayed at a visibility level of showing no confidential information, wherein the second file is accessible by all users.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
reading, by the second computer, the second file into a document model;
determining, by the second computer, whether the metadata of the confidential information exists in the second file;
determining, by the second computer, whether the first file corresponding to the second file exists, in response to determining that the metadata of the confidential information exists in the second file;
determining, by the second computer, the confidential information visibility level in accordance with the authorization level of the authorized user, in response to determining that the first file corresponding to the second file exists;
merging, by the second computer, the confidential information in the second file into the document model, according to the confidential information visibility level in accordance with the authorization level of the authorized user; and
displaying, by the second computer, the document model, wherein the document model includes the confidential information.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
in response to determining that the metadata of the confidential information does not exist in the second file, displaying, by the second computer, the document model, wherein the document model includes content of the second file.

### Claim 4 (depends on 2)

The method of claim 2, further comprising:
in response to determining that the metadata of the confidential information exists in the second file and the first file corresponding to the second file does not exist, rendering the document model, by the second computer, according to the one or more visibility levels specified by the metadata in the second file; and
displaying, by the second computer, the document model, wherein the document model does not show the confidential information.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
generating, by the first computer, a hash value from the second file;
requesting, by the first computer, a user of the first computer to enter a password;
determining, by the first computer, whether the user of the first computer enters the password;
in response to determining that the user of the first computer does not enter the password, creating, by the first computer, a key for encryption, based on the hash value;
in response to determining that the user of the first computer enters the password, creating, by the first computer, the key for the encryption, by combing the hash value and the password;
encrypting, by the first computer, with the key for the encryption, the confidential information to generate encrypted confidential information; and
writing, by the first computer, the encrypted confidential information into the first file.

### Claim 6

A computer program product for securely sharing confidential information in a document, the computer program product comprising a computer readable storage medium having program code embodied therewith, the program code executable to:
set, by a first computer, one or more confidential attributes of the confidential information in the document, the one or more confidential attributes including one or more visibility levels of the confidential information and one or more authorization levels of access to the confidential information;
create, by the first computer, metadata of the confidential information, the metadata including information of the one or more confidential attributes;
create, by the first computer, a first file including the confidential information and the metadata;
create, by the first computer, a second file including non-confidential information in the document and the metadata, the metadata in the second file being as a reference to the confidential information;
generate, by the second computer, a hash value from the second file;
determine, by the second computer, whether a password has been entered during encryption of the confidential information;
request, by the second computer, the authorized user of the second computer to enter the password, and create, by the second computer, a key for decryption, by combing the hash value and the password, in response to determining that the password has been entered during the encryption of the confidential information;
create, by the second computer, the key for the decryption, based on the hash value, in response to determining that no password has been entered during the encryption of the confidential information;
decrypt, by the second computer, with the key for the decryption, encrypted confidential information in the first file;
wherein the confidential information in the first file is displayed by a second computer at a confidential information visibility level in accordance with an authorization level of an authorized user of the second computer; and
wherein the second file is displayed at a visibility level of showing no confidential information, wherein the second file is accessible by all users.

### Claim 7 (depends on 6)

The computer program product of claim 6, further comprising the program code executable to:
read, by the second computer, the second file into a document model;
determine, by the second computer, whether the metadata of the confidential information exists in the second file;
determine, by the second computer, whether the first file corresponding to the second file exists, in response to determining that the metadata of the confidential information exists in the second file;
determine, by the second computer, the confidential information visibility level in accordance with the authorization level of the authorized user, in response to determining that the first file corresponding to the second file exists;
merge, by the second computer, the confidential information in the second file into the document model, according to the confidential information visibility level in accordance with the authorization level of the authorized user; and
display, by the second computer, the document model, wherein the document model includes the confidential information.

### Claim 8 (depends on 7)

The computer program product of claim 7, further comprising the program code executable to:
display, by the second computer, the document model, wherein the document model includes content of the second file, in response to determining that the metadata of the confidential information does not exist in the second file.

### Claim 9 (depends on 7)

The computer program product of claim 7, further comprising the program code executable to:
render, by the second computer, the document model, according to the one or more visibility levels specified by the metadata in the second file, in response to determining that the metadata of the confidential information exists in the second file and the first file corresponding to the second file does not exist; and
display, by the second computer, the document model, wherein the document model does not show the confidential information.

### Claim 10 (depends on 6)

The computer program product of claim 6, further comprising the program code executable to:
generate, by the first computer, a hash value from the second file;
request, by the first computer, a user of the first computer to enter a password;
determine, by the first computer, whether the user of the first computer enters the password;
create, by the first computer, a key for encryption, based on the hash value, in response to determining that the user of the first computer does not enter the password;
create, by the first computer, the key for the encryption, by combing the hash value and the password, in response to determining that the user of the first computer enters the password;
encrypt, by the first computer, with the key for the encryption, the confidential information to generate encrypted confidential information; and
write, by the first computer, the encrypted confidential information into the first file.

### Claim 11

A computer system for securely sharing confidential information in a document, the computer system comprising:
one or more processors, one or more computer readable tangible storage devices, and program instructions stored on at least one of the one or more computer readable tangible storage devices for execution by at least one of the one or more processors, the program instructions executable to:
set, by a first computer, one or more confidential attributes of the confidential information in the document, the one or more confidential attributes including one or more visibility levels of the confidential information and one or more authorization levels of access to the confidential information;
create, by the first computer, metadata of the confidential information, the metadata including information of the one or more confidential attributes;
create, by the first computer, a first file including the confidential information and the metadata;
create, by the first computer, a second file including non-confidential information in the document and the metadata, the metadata in the second file being as a reference to the confidential information;
generate, by the second computer, a hash value from the second file;
determine, by the second computer, whether a password has been entered during encryption of the confidential information;
request, by the second computer, the authorized user of the second computer to enter the password, and create, by the second computer, a key for decryption, by combing the hash value and the password, in response to determining that the password has been entered during the encryption of the confidential information;
create, by the second computer, the key for the decryption, based on the hash value, in response to determining that no password has been entered during the encryption of the confidential information; and
decrypt, by the second computer, with the key for the decryption, encrypted confidential information in the first file;
wherein the confidential information in the first file is displayed by a second computer at a confidential information visibility level in accordance with an authorization level of an authorized user of the second computer;
wherein the second file is displayed at a visibility level of showing no confidential information, wherein the second file is accessible by all users.

### Claim 12 (depends on 11)

The computer system of claim 11, further comprising the program instructions executable to:
read, by the second computer, the second file into a document model;
determine, by the second computer, whether the metadata of the confidential information exists in the second file;
determine, by the second computer, whether the first file corresponding to the second file exists, in response to determining that the metadata of the confidential information exists in the second file;
determine, by the second computer, the confidential information visibility level in accordance with the authorization level of the authorized user, in response to determining that the first file corresponding to the second file exists;
merge, by the second computer, the confidential information in the second file into the document model, according to the confidential information visibility level in accordance with the authorization level of the authorized user; and
display, by the second computer, the document model, wherein the document model includes the confidential information.

### Claim 13 (depends on 12)

The computer system of claim 12, further comprising the program instructions executable to:
display, by the second computer, the document model, wherein the document model includes content of the second file, in response to determining that the metadata of the confidential information does not exist in the second file.

### Claim 14 (depends on 12)

The computer system of claim 12, further comprising the program instructions executable to:
render, by the second computer, the document model, according to the one or more visibility levels specified by the metadata in the second file, in response to determining that the metadata of the confidential information exists in the second file and the first file corresponding to the second file does not exist; and
display, by the second computer, the document model, wherein the document model does not show the confidential information.

### Claim 15 (depends on 11)

The computer system of claim 11, further comprising the program instructions executable to:
generate, by the first computer, a hash value from the second file;
request, by the first computer, a user of the first computer to enter a password;
determine, by the first computer, whether the user of the first computer enters the password;
create, by the first computer, a key for encryption, based on the hash value, in response to determining that the user of the first computer does not enter the password;
create, by the first computer, the key for the encryption, by combing the hash value and the password, in response to determining that the user of the first computer enters the password;
encrypt, by the first computer, with the key for the encryption, the confidential information to generate encrypted confidential information; and
write, by the first computer, the encrypted confidential information into the first file.
