Skip to content

4. Encryption and decryption

Damon东哥 edited this page Apr 18, 2025 · 2 revisions

If there is sensitive information that you don't want users to see when debugging, you can set encryption in two simple steps

// 1. Set the encryption password,  32 characters
DDLoggerSwift.privacyLogPassword = "12345678901234561234567890123456"

// 2, output encrypted content
printPrivacy("This is test data 222 for encrypted data")

4.2 Decrypt the contents of the display window

After the setting, the display in the display window is This content is encrypted, please view it after decryption, enter the set encryption password and click decrypt to display the info encrypted content.

4.1. Decrypting shared files

  • If the data has been decrypted in the display window, the content of the shared file will not be encrypted at this time, and all content will be displayed.
  • If it is not decrypted in the display window, the content of the file shared at this time is AES encrypted content, you can search the AES Online Decryption Website to decrypt the content, and the settings are as follows:

such as https://www.ducktool.com/zh/stringdecode

  • Mode: CBC
  • Fill: Pkcs7
  • key: 12345678901234561234567890123456
  • Offset: abcdefghijklmnop
  • Encoding: Base64
  • Character set: UTF8

Then click Decrypt.

Clone this wiki locally