A method, system, and readable medium for cross-platform access to local secret data.

By using a state machine component with multi-party participation to manage encrypted data and one-time passwords, combined with random numbers and state records, the single point of failure and privacy leakage issues in cross-platform access are resolved, enabling secure and convenient cross-platform access.

CN123122920APending Publication Date: 2026-11-17BEIJING DANEI TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611312212.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-27
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

In existing technologies, when secret data is stored only on local devices, it is difficult to access securely and conveniently on different terminals, leading to long-term password exposure, high risk of offline cracking, single point of failure, and privacy leaks.

Method used

By using a state machine component with multi-party participation to manage encrypted data, one-time passwords and session keys are generated. Combined with random numbers and state records, cross-platform access is achieved, reducing the risk of single point of failure and replay attacks. Selective access is achieved using a segmented identifier list.

Benefits of technology

It enables secure and convenient cross-platform access, reduces the risk of long-term password exposure, minimizes single points of failure and privacy leaks, and improves the security and reliability of access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123122920A_ABST
    Figure CN123122920A_ABST
Patent Text Reader

Abstract

This invention belongs to the field of cryptography technology and relates to a cross-platform method, system, and readable medium for accessing local secret data. The method includes: acquiring local secret data or secret material capable of recovering the local secret data, and segmenting the secret material; generating managed ciphertext from the segmented secret material and managing it on a state machine component; generating a one-time password and access preparation data, and deriving a session key from the one-time password; on the target device, initiating an access request to the state machine component using the key and access preparation data, unlocking or releasing the managed ciphertext using the key and access preparation data, and performing ciphertext conversion to generate a result ciphertext; decrypting the result ciphertext using the session key to obtain the segmented secret material, thus completing the access operation to the local secret data. This reduces the risk of single point of failure and single point of malicious activity, reduces the risk of long-term password exposure, and defends against replay attacks through random numbers and state records.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of information security and cryptography technology, and specifically relates to a cross-platform access method, system and readable medium for local secret data. Background Technology

[0002] In various application scenarios, confidential data is typically stored only on local devices. Examples include digital wallet key materials, internet account passwords / tokens, and keys or decryption materials for locally encrypted files. When users change devices, switch between multiple devices, or perform emergency operations on temporary / public devices, traditional practices often require importing long-term secrets or copying key files. This can easily lead to long-term password exposure, offline brute-force attacks, and single points of failure and privacy leaks caused by centralized hosting. Summary of the Invention

[0003] To address the aforementioned problems, the purpose of this invention is to provide a cross-platform access method, system, and readable medium for local secret data. This method reduces the risk of single point of failure and single point of malicious activity through multi-party participation, reduces the risk of long-term password exposure through one-time password derivation, and defends against replay attacks through random numbers and status records, thereby achieving secure and convenient cross-platform access.

[0004] To achieve the above objectives, the present invention proposes the following technical solution: a cross-platform access method for local secret data, comprising the following steps: acquiring local secret data or secret material capable of recovering the local secret data, and segmenting the secret material; generating managed ciphertext from the segmented secret material and managing it to a state machine component; generating a one-time password and access preparation data, and deriving a session key from the one-time password; on a target device, initiating an access request to the state machine component using the access preparation data, unlocking or releasing the managed ciphertext using the access preparation data, and performing ciphertext conversion to generate a result ciphertext; decrypting the result ciphertext using the session key to obtain the segmented secret material, and completing the access operation to the local secret data.

[0005] Furthermore, the state machine component has a memory function and can automatically execute according to preset rules and external instructions. The state machine component is a blockchain smart contract or an electronic bulletin board system maintained by multiple parties. The state machine component records state machine events of access requests. The state machine events include one or more of the following: request creation, verification passed, result submitted, request completed, and request invalidated.

[0006] Furthermore, the access preparation data generation includes identity authentication information and a unique random number for replay protection. The access preparation data is associated with the state machine component. The identity authentication information includes: a digital signature generated based on the private key bound to the user's identity, and / or identity credentials issued by a distributed authority. Zero-knowledge proofs are used to prove that the user authentication information can generate the digital signature or / and hold valid credentials without disclosing the credential content.

[0007] Furthermore, the unique random number is associated with a usage tag, which includes a request identifier, a time window, a state machine identifier, an access range, or a combination thereof. The state machine component maintains the usage state of the unique random number to reject replay requests.

[0008] Furthermore, after the session ends, the one-time password and the session key are invalidated, intermediate data related to this access is cleared, and the unique random number is marked as used.

[0009] Furthermore, the access request includes a list of segment identifiers to be accessed, and the access control conditions require at least two or more nodes to participate and output their respective processing results or authorization elements to complete the unlocking or release.

[0010] Furthermore, the escrow ciphertext is ciphertext generated by at least two layers of encryption, wherein at least one layer of encryption is associated with the user's long-term key, and at least one layer of encryption is associated with a shared key or a collaborative unlocking mechanism.

[0011] Furthermore, the ciphertext conversion includes one or more of re-encryption, proxy re-encryption, ciphertext repackaging, or ciphertext format conversion, and is completed without the node set obtaining the plaintext of the secret material. The node set consists of multiple independent nodes used for identity authentication cooperation, jointly participating in unlocking / release and performing ciphertext conversion according to access control conditions.

[0012] This invention discloses a cross-platform access system for local secret data, comprising: a secret material segmentation module for acquiring local secret data or secret materials capable of recovering the local secret data, and segmenting the secret materials; a hosting module for generating hosted ciphertext from the segmented secret materials and hosting it to a state machine component; a password generation module for generating a one-time password and access preparation data, and deriving a session key from the one-time password; a ciphertext conversion module for initiating an access request to the state machine component on a target device using the access preparation data, unlocking or releasing the hosted ciphertext using the access preparation data, and performing ciphertext conversion to generate a result ciphertext; and an access module for decrypting the result ciphertext using the session key to obtain the segmented secret materials and completing the access operation to the local secret data.

[0013] The present invention also discloses a computer-readable storage medium storing a computer program that is executed by a processor to implement a cross-platform access method for local secret data as described in any of the preceding claims.

[0014] The technical solution of the present invention has at least the following technical effects or advantages: This invention requires multi-party participation in access control conditions, thereby reducing the risk of single point of failure and single point of malicious activity. The target device only needs a one-time password and does not need to enter a long-term secret. It invalidates copy requests through random numbers and status records, supports selective access by segmented identifier list, reduces the exposure surface, and its ciphertext conversion process does not require nodes to obtain plaintext secret materials. Attached Figure Description

[0015] Figure 1 This is a flowchart of a cross-platform access method for local secret data according to an embodiment of the present invention; Figure 2 This is a schematic diagram of a cross-platform access platform architecture in one embodiment of the present invention; Figure 3 This is a block diagram of a cross-platform access system for local secret data according to an embodiment of the present invention. Detailed Implementation

[0016] To enable those skilled in the art to better understand the technical solutions of the present invention, the present invention is described in detail through specific embodiments. However, it should be understood that the specific embodiments are provided only for a better understanding of the present invention and should not be construed as limiting the present invention. In the description of the present invention, it should be understood that the terminology used is for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0017] To address the problem in existing technologies where confidential data is typically stored only on local devices and difficult to access securely and conveniently across different terminals, this invention proposes a cross-platform access method, system, and readable medium for local confidential data. The method includes the following steps: acquiring local confidential data or confidential material capable of recovering the local confidential data, and segmenting the confidential material; generating managed ciphertext from the segmented confidential material and managing it on a state machine component; generating a one-time password and access preparation data, and deriving a session key from the one-time password; on the target device, initiating an access request to the state machine component using the key and access preparation data, unlocking or releasing the managed ciphertext using the key and access preparation data, and performing ciphertext conversion to generate a result ciphertext; decrypting the result ciphertext using the session key to obtain the segmented confidential material, and completing the access operation to the local confidential data. This method reduces the risk of single point of failure and single point of malicious activity through multi-party participation, reduces the risk of long-term password exposure through one-time password derivation, and defends against replay attacks through random numbers and state records, achieving secure and convenient cross-platform access. The invention will be described in detail below with reference to the accompanying drawings.

[0018] Example 1 This invention discloses a cross-platform access method for local secret data, treating cross-platform access as a "controlled self-service unlocking," comprising the following steps: S1 acquires local secret data or secret materials capable of recovering local secret data on a trusted source device, and segments the secret materials, dividing the secret materials into at least one segment of secret materials.

[0019] Users generate key pairs or credentials that are bound to their identity on a trusted source device and register the corresponding verification information in the state machine component. Local secret data includes, but is not limited to: digital wallet key materials, internet account passwords / tokens, local encrypted file keys, or other local secret materials that need to be kept confidential.

[0020] Secret materials are segmented according to a preset granularity. The segmentation granularity can be bound to an account / asset / permission domain, file fragment, or application domain.

[0021] S2 generates managed ciphertext using segmented secret material and manages it to the state machine component.

[0022] like Figure 2 As shown, the client runs on the trusted source device and the target device, and is responsible for segmentation, managed ciphertext generation, one-time password / session key derivation, access request construction, result decryption, and session cleanup.

[0023] The managed ciphertext is generated through at least two layers of encryption to enhance its resistance to offline guessing and single-point leakage. At least one layer of encryption is associated with the user's long-term key, and at least another layer is associated with a shared key or collaborative unlocking mechanism of a node set. The node set consists of multiple independent nodes that cooperate in authentication, participate in unlocking / release according to access control conditions, and perform ciphertext conversion.

[0024] The state machine component has a memory function and can automatically execute according to preset rules and external instructions. It is used to store escrow encrypted data, access pre-prepared data, request status and anti-replay records, and provide a verifiable interaction interface. In this embodiment, the state machine component can be a blockchain smart contract, an electronic bulletin board system maintained by multiple parties, or other finite state machines that can automatically execute and maintain state according to preset rules and external instructions. The state machine component records state machine events for access requests. State machine events include at least one or more of the following: request creation, verification passed, result submission, request completion, and request invalidation, so as to make the request publicly verifiable and auditable.

[0025] When cross-platform access is required, S3 generates a one-time password and access preparation data, and derives a session key from the one-time password.

[0026] Access preparation data generation includes authentication information and a unique random number for replay protection, and is associated with the state machine component. The authentication information includes: a digital signature generated based on the user's private key, and / or identity credentials issued by a distributed authority; and zero-knowledge proofs are used to demonstrate that the user's authentication information can generate a digital signature or / and hold valid credentials without revealing the credential content.

[0027] A unique random number is associated with a purpose tag, which includes a request identifier, a time window, a state machine identifier, an access range, or a combination thereof. The state machine component maintains the usage status of the unique random number to reject replay requests.

[0028] On the target device, S4 initiates an access request to the state machine component using a key and access preparation data, unlocks or releases the managed ciphertext using the key and access preparation data, and performs ciphertext transformation to generate the result ciphertext.

[0029] The system receives a one-time password on the target device to recover the session key and initiates an access request to the node set based on access preparation data. The access request includes a list of segment identifiers to be accessed. After completing authentication and anti-replay verification, the node set jointly participates in unlocking / releasing the managed ciphertext corresponding to the segment identifier list according to preset access control conditions, and performs ciphertext conversion to generate a result ciphertext, which is configured to be decryptable only by the session key. The access control conditions require at least two or more nodes to participate and output their respective processing results or authorization elements to complete the unlocking or release, thereby reducing the risk of single point of failure. The access control conditions may further include threshold conditions.

[0030] Ciphertext transformation includes one or more of re-encryption, proxy re-encryption, ciphertext repackaging, or ciphertext format conversion, and is performed without the node set obtaining the plaintext of the secret material.

[0031] Access control conditions require at least two or more nodes to participate and output their respective processing results or authorization elements to complete the unlock / release process. S5 decrypts the ciphertext using the session key to obtain segmented secret material and completes access to local secret data.

[0032] After the session ends, invalidate the one-time password and session key, clean up the intermediate data related to this access, and mark the unique random number as used.

[0033] Users can prove their ability to generate signatures and / or hold valid credentials without revealing the credential content using zero-knowledge proofs. After access is complete, the managed ciphertext can optionally be re-encrypted, versioned, or otherwise refreshed to reduce cross-access linkability and accommodate node member changes.

[0034] Example 2 Based on the same inventive concept, this invention discloses a cross-platform access system for local secret data, such as... Figure 3 As shown, it includes: The secret material segmentation module is used to acquire local secret data or secret materials that can recover local secret data, and to segment the secret materials. The managed module is used to generate managed ciphertext from segmented secret material and manage it to the state machine component; The password generation module is used to generate one-time passwords and access preparation data, and derive session keys from one-time passwords; The ciphertext conversion module is used to initiate an access request to the state machine component on the target device using a key and access preparation data, unlock or release the managed ciphertext using the key and access preparation data, and perform ciphertext conversion to generate the result ciphertext. The access module is used to decrypt the ciphertext of the result using the session key to obtain segmented secret material and to complete the access operation to local secret data.

[0035] Example 3 Based on the same inventive concept, this embodiment discloses a computer-readable storage medium storing a computer program, which is executed by a processor to implement a cross-platform access method for local secret data as described above.

[0036] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0037] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A system that specifies functions in one or more boxes.

[0038] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including an instruction set implemented in a process. Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0039] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0040] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific embodiments of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the claims of the present invention. The above content is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims

1. A method for cross-platform access to local secret data, characterized in that, Includes the following steps: Acquire local secret data or secret materials capable of recovering the local secret data, and segment the secret materials; The secret material is segmented to generate managed ciphertext, which is then managed to the state machine component. Generate a one-time password and access pre-prepared data, and derive a session key from the one-time password; On the target device, an access request is initiated to the state machine component using the access preparation data, the managed ciphertext is unlocked or released using the access preparation data, and a ciphertext transformation is performed to generate the result ciphertext. The session key is used to decrypt the ciphertext of the result to obtain the segmented secret material, and to complete the access operation to the local secret data.

2. The cross-platform access method for local secret data as described in claim 1, characterized in that, The state machine component has a memory function and can automatically execute according to preset rules and external instructions. The state machine component is a blockchain smart contract or an electronic bulletin board system maintained by multiple parties. The state machine component records the state machine events of access requests. The state machine events include one or more of the following: request creation, verification passed, result submission, request completion, and request invalidation.

3. The cross-platform access method for local secret data as described in claim 2, characterized in that, The access preparation data generation includes identity authentication information and a unique random number for replay protection. The access preparation data is associated with the state machine component. The identity authentication information includes: a digital signature generated based on the private key bound to the user's identity, and / or identity credentials issued by a distributed authority. Zero-knowledge proofs are used to demonstrate that the user authentication information can generate the digital signature or / and hold valid credentials without disclosing the credential content.

4. The cross-platform access method for local secret data as described in claim 3, characterized in that, The unique random number is associated with a usage tag, which includes a request identifier, a time window, a state machine identifier, an access range, or a combination thereof. The state machine component maintains the usage state of the unique random number to reject replay requests.

5. The cross-platform access method for local secret data as described in claim 3, characterized in that, After the session ends, the one-time password and the session key are invalidated, intermediate data related to this access is cleared, and the unique random number is marked as used.

6. The cross-platform access method for local secret data as described in claim 1, characterized in that, The access request includes a list of segment identifiers to be accessed. The access control conditions require at least two or more nodes to participate and output their respective processing results or authorization elements to complete the unlocking or release.

7. The cross-platform access method for local secret data as described in claim 1, characterized in that, The escrow ciphertext is ciphertext generated by at least two layers of encryption, wherein at least one layer of encryption is associated with the user's long-term key, and at least one layer of encryption is associated with a shared key or a collaborative unlocking mechanism.

8. The cross-platform access method for local secret data as described in claim 1, characterized in that, The ciphertext conversion includes one or more of re-encryption, proxy re-encryption, ciphertext repackaging, or ciphertext format conversion, and is completed without the node set obtaining the plaintext of the secret material. The node set consists of multiple independent nodes used for identity authentication cooperation, jointly participating in unlocking / release and performing ciphertext conversion according to access control conditions.

9. A cross-platform system for accessing local secret data, characterized in that, include: The secret material segmentation module is used to acquire local secret data or secret materials that can recover the local secret data, and to segment the secret materials. The managed module is used to generate managed ciphertext from the segmented secret material and manage it to the state machine component; The password generation module is used to generate one-time passwords and access preparation data, and derive session keys from one-time passwords; The ciphertext conversion module is used to initiate an access request to the state machine component on the target device through the access preparation data, unlock or release the managed ciphertext through the access preparation data, and perform ciphertext conversion to generate the result ciphertext. The access module is used to decrypt the ciphertext of the result using the session key to obtain the segmented secret material and to complete the access operation to the local secret data.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that is executed by a processor to implement the cross-platform access method for local secret data as described in any one of claims 1-8.