Step 1: Right-click the object to be encrypted, Click properties, and click advanced under the regular tab. In the displayed dialog box, check the encryption to protect data check box and click application, the encrypted object turns green, indicating that the encryption is successful. Only reverse operations are required for decryption.
Step 2: at this time, Windows automatically generates a certificate for the corresponding account. For data security, we can export the certificate, run certmgr. msc, and call up the certificate manager.
Step 3: Find the generated certificate under the current certificate user, right-click all tasks, and open the export wizard.
Select export key at the same time and click "next ";
Select "personal information exchange"-PKCS #12 (PFX) (this certificate can only be exported in the form of personal information exchange ).