> ## Documentation Index
> Fetch the complete documentation index at: https://support.locker.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Giải mã và truy cập dữ liệu

> Mô tả quá trình giải mã và truy cập dữ liệu trong Kho dữ liệu bí mật của Locker

## Giải mã và truy cập dữ liệu

Dữ liệu của người dùng trong [Kho dữ liệu bí mật](/vi/locker-whitepaper/security-fundamentals/vault) đã được mã hóa hoàn toàn trước khi lưu vào cơ sở dữ liệu của Locker. Những dữ liệu này sẽ chỉ được giải mã tại Locker Client để người dùng có thể truy cập và xem được. Tương tự [quá trình mã hóa dữ liệu](/vi/locker-whitepaper/encryption-and-decryption/data-encryption), quá trình giải mã chỉ được thực hiện khi và chỉ khi việc [xác thực tài khoản](/vi/locker-whitepaper/encryption-and-decryption/account-authentication) đã thành công trước đấy và hoàn toàn được thực hiện ở phía Client.

Quá trình giải mã gồm các bước:

* Client lấy **Encrypted Symmetric Key** và **Encrypted Vault Item** từ máy chủ Locker.
* Client dùng Master Password do người dùng nhập vào để tạo ra **Stretched Master Key**.
* Client dùng Stretched Master Key và thuật toán AES-CBC-256 để giải mã Encrypted Symmetric Key, thu được **Symmetric Key**.
* Client giải mã **Encrypted Vault Item** bằng thuật toán AES-CBC-256 và khóa là Symmetric Key.
* Client thu được **Vault Item** và hiển thị cho người dùng.

Chi tiết quá trình giải mã dữ liệu được mô tả ở hình dưới đây.

<img src="https://mintcdn.com/locker/ZpQHj9IjHy-TnRFC/images/vi/locker-whitepaper/encryption-and-decryption/data-decryption.png?fit=max&auto=format&n=ZpQHj9IjHy-TnRFC&q=85&s=39572b45939246b35d6332e318fc2d45" alt="Sơ đồ giải mã dữ liệu" width="705" height="562" data-path="images/vi/locker-whitepaper/encryption-and-decryption/data-decryption.png" />
