简体   繁体   中英

Is there a encryption api's available to encrypt log file while using Microsoft Enterprise Library 3.1

How to encrypt a string message while it is being logged into the log file using Logger.Write(...) in Microsoft Enterprise Library 3.1. Are there any inbuilt API's in Microsoft Enterprise Library which does encryption?

From msdn: http://msdn.microsoft.com/en-us/library/ff647732.aspx

The Logging Application Block formatters do not encrypt logging information. Trace listener destinations receive logging information as clear text. This means that attackers that can access a trace listener destination can read the information. You can prevent unauthorized access to sensitive information. One approach is to use access control lists (ACLs) to restrict access to flat files. You can also create a custom formatter that encrypts log information. For information about how to create a custom formatter, see Extending the Logging Application Block .

here is implementation of log message encryption: http://msdn.microsoft.com/en-us/magazine/cc188689.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM