File encryption is a temporary solution intended for the secure transmission of files, rather than for long-term storage.
Encrypted documents (with the .cdoc extension) can be opened using an ID-card only by those who have been granted permission to do so. For everyone else, the content of the document remains protected. For example, encryption is necessary when you are sending confidential information via e-mail and want to ensure that the file contents remain secret, even if they fall into the wrong hands.
The person who can open encrypted documents is determined by the encrypter:
- To this end, the recipient’s personal identification code is required or the company name or registry code in the case of a legal person.
- NB! If you wish to maintain the ability to use encrypted documents, make sure to include yourself as a recipient.
NB! You can search for private individuals in the address search only by their Estonian personal identification code. This also includes e-residents who have an Estonian personal identification code and an e-resident digital ID card. A legal entity can be searched for by its registry code or the name of the organization, provided it has a certificate suitable for encryption, which can be found through the recipient search.
Encryption and decryption of documents with the DigiDoc4 application
DigiDoc4 allows you to easily encrypt both digitally signed and unsigned documents. You can also use DigiDoc4 to quickly and conveniently decrypt encrypted files – provided that you are one of the recipients of the encrypted document.
Open “CRYPTO” in the left-hand menu in the DigiDoc4 application in order to encrypt files. You can add the necessary files by dragging them across the screen or by clicking on “... or load file from disk”. You can encrypt files that have or have not been digitally signed.

The files encrypted at the same time are added into the same container or document envelope. If you use a macOS computer, you will be asked to name the envelope when you add the files. Select a clear and descriptive name, so that the envelope can be easily found and used later.
Windows users don’t have to name the envelope themselves, as it is automatically created and the envelope of the encrypted files is saved in the same place as the files that were encrypted.
“Add more files” helps you to add as many files to the envelope as you want.

After all files have been added, you must determine the recipients of the envelope:
- In the case of private individuals, you need to know their personal identification codes.
- In the case of legal entities, you need the company’s registration number or the institution’s name.
- NB! If you want to open the encrypted files later, you must add yourself as a recipient as well!
Make sure that you have added all of the necessary files and recipients before encryption!
Click on “ENCRYPT” if everything is in order.

DigiDoc4 will let you know when the files were successfully encrypted and the name of the “ENCRYPT” button will change as well: it now says “DECRYPT” (so you can immediately open the envelope if necessary).
The encrypted envelope can now be safely shared.
The .cdoc file extension is used in the case of encrypted files and these files can only be opened by the recipients determined by the encrypter with their ID-card (or other digital document).
NB! You can encrypt files without an ID-card or other digital identity document. However, you must keep in mind that you cannot open or decrypt encrypted files with Mobile-ID or Smart-ID!
In order to open encrypted files, connect your ID-card to a computer, open DigiDoc4 and check that the data of your ID-card are read correctly. Then double click on the encrypted envelope.
Encrypted files are opened in the DigiDoc4 menu “CRYPTO”. The “decrypt” button is active if you have the right to decrypt or open the files. If the “decrypt” button is active, you don’t have the right to open the files (or an incorrect card has been inserted into the reader).
If you use both an ID-card and digi-ID: make sure that the correct document is in the card reader! The document you can use to open an encrypted file is shown in small print under the recipient’s name.

Click “DECRYPT WITH ID-CARD”.
You need your PIN1 to open an encrypted file.
Follow the instructions on screen. Don’t forget to save the decrypted files on your computer in a place where you can easily find them later!
NB! When files are decrypted, a copy is made of the contents of the security container in the temporary TEMP (%TMP%, usually Windows → Temp in Windows) directory.
The contents of the TEMP directory are protected from unauthorised access just as well as all the other contents of your computer: if several people use your computer or the content of the encrypted files is confidential (e.g. it contains someone’s personal data, passwords, etc.), the copies created in the TEMP directory should definitely be deleted!
Step 1: Open the RIA DigiDoc app
First, open the RIA DigiDoc app on your mobile phone and then select “Crypto” from the bottom menu. You will immediately be given the opportunity to start adding files for encrypting.
Step 2: Select files
Select the documents you want to add to the encrypted envelope by clicking the "Add file" button. If you want to send multiple encrypted documents to the same recipients at once, you can add more documents to the envelope by clicking the "Add more files" button.
![]() | ![]() |
Step 3: Add recipients and Encryption
Once you have added the necessary documents to the encryption envelope, you have to choose to whom you give permission to open the encrypted documents.
You need to know a person's personal identification number to give a private person a personal opening right. For organisations, you need either the registry code of the organisation or the exact name.
Add recipients by clicking on the “Next” button.
Next, enter the required personal identification code or registration number into the search field that appears. Add all recipients one by one by tapping on the found recipient in the search results. Once you are sure the list is complete, tap the “Encrypt” button at the bottom of the screen.
NB! Don't forget that if you want to open your encrypted documents later, you'll need to add yourself to the recipients!
![]() | ![]() |
After encryption, you will be taken back to the main encryption view (Container encryption).
In the “Encrypted files” section, you can see all the documents being encrypted at once.
In the “Recipients” section, you can see the names of all individuals who have the right to open the encrypted document envelope.
![]() | ![]() |
Step 4: Saving encrypted documents
NB! After encryption, the envelope must be saved or shared!
- To share, tap the “Share” button at the bottom of the screen. A list of different sharing options will appear — choose the one that suits you best.
- To save, tap the three dots in the top right corner of the envelope view and select “Save container.” A list of different locations on your device will appear — choose the most suitable one.
![]() | ![]() |
"If you exit the program or use another function, you can find the recently encrypted file(s) in the "Recent documents" list."
To open this list, go to the main menu of the RIA DigiDoc application and click on "Files". In the window that opens, click on "Recent documents" and select the appropriate containers.
![]() | ![]() |
Step 1: Open the app
First, open the RIA DigiDoc app on your mobile phone and then select “Crypto” from the bottom menu. You will immediately be given the opportunity to start adding files for encrypting.
Step 2: Select files
Select the documents you want to add to the encrypted envelope by clicking on the “Choose file” button. If you send multiple encrypted documents to the same recipients at the same time, you can add more documents to the envelope by clicking on the “Add more files” button.
![]() | ![]() |
Step 3: Add recipients and encrypt
Once you have added the necessary documents to the encryption envelope, you have to choose to whom you give permission to open the encrypted documents.
You need to know a person's personal identification number to give a private person a personal opening right. For organisations, you need either the registry code of the organisation or the exact name.
Add recipients by clicking on the “Next” button.
Then enter the required personal identification code or registry number in the search window that opens: add each recipient one at a time, and when you are sure that the list is complete, press the “Encrypt” button at the bottom of the screen.
NB! Don't forget that if you want to open your encrypted documents later, you'll need to add yourself to the recipients!
![]() | ![]() |
After encryption, you will be returned to the main encryption screen (Container Files).
In the "Container Files" section, you can see all the documents being encrypted at once.
In the "Envelope Recipients" section, you can see the names of everyone authorized to open this encrypted document envelope.
![]() | ![]() |
Step 4: Saving encrypted documents
NB! After encryption, the document envelope must be saved or shared!
- To share, click the "Share" button at the bottom of the screen. A list of different sharing options will appear; choose the one that works best for you.
- To save, click the three dots in the upper-right corner of the envelope selection and choose "Save Envelope." A list of devices from various locations will open; select the most appropriate location from the list.
![]() | ![]() |
When you exit the program or use another feature, you can find the recently encrypted file(s) in the "Recent Envelopes" list.
To open this list, tap "Files" in the RIA DigiDoc app's main menu. In the window that opens, tap "Recent Envelopes" and select the appropriate envelope.
![]() | ![]() |
NB! Document decryption is performed using the NFC method with an ID card.
Step 1: Save the file
Start by saving the encrypted document envelope to your smartphone or cloud (iCloud, Drive, etc.).
For example, encrypted documents arriving as an e-mail attachment: save them to a convenient place so that you can easily find the files you have saved.
Step 2: Open RIA DigiDoc app
Once the necessary files are saved, open the RIA DigiDoc app on your smartphone and select "Files" from the main menu. In the popup window that opens, choose "Add file" and select the encrypted envelope from the saved location.
![]() | ![]() |
Step 3: Decrypting
You will now be offered the option to unscramble the document envelope: click the „Decrypt” button.

Decryption can be done using "ID card via NFC"
- ID card via NFC – Enter the CAN number and PIN1 code via NFC. Read more in "Signing with NFC in the RIA DigiDoc mobile application".
![]() | ![]() |
If the decryption is successful, the documents are now ready to be opened and used: click on the file name or save the opened files to your phone or cloud service.

NB! Documents are only decrypted with the ID-card NFC method.
Step 1: Save the file
Start by saving the encrypted document envelope to your smartphone or cloud (iCloud, Drive, etc.).
For example, encrypted documents arriving as an e-mail attachment: save them to a convenient place so that you can easily find the files you have saved.
Step 2: Open RIA DigiDoc app
Once you have saved the necessary files, open the RIA DigiDoc app on your smartphone and select "Files" from the main menu. In the pop-up window that appears, select "Add File" and choose the encrypted envelope from where you saved it.
![]() | ![]() |
Step 3: Decrypting
You will now be offered the option to unscramble the document envelope: click the „Decrypt” button.

Decryption can be performed using "ID card via NFC"
- ID-Card via NFC - Enter the CAN number and PIN1 code via NFC. Read more: "Signing via NFC in the RIA DigiDoc mobile app"
![]() | ![]() |
If decryption was successful, the documents are now ready to open and use: click on the file name or save the open files to your phone or cloud.

Encrypting large (120+ MB) files
The DigiDoc4 application is not designed for encrypting large files.
For instance, adding a 120 MB file to a container and trying to encrypt it would be very time-consuming and slow down your computer in the process. Besides, most attempts to encrypt large files fail and DigiDoc4 either freezes or displays an error message.

If you need to share large files securely, you need to find an alternative solution. It is recommended to use DigiDoc4 for encrypting documents smaller than 120 MB.
Last updated: 26.11.2026



























