Home > Net >  C # app. Config encryption database string
C # app. Config encryption database string

Time:10-02

App. The content of the config file:
<? The XML version="1.0" encoding="utf-8"?>









My code: read XML configuration, I now make a encrypted exe file to separate first app. The config file and dense, and then run on my program can decrypt read XML content, a great god, please move, I a small white, please take care!

String Constr=System. The Configuration. The ConfigurationManager. ConnectionStrings [r]. "Constr" ToString ();

String M_str_sqlcon=Constr;

CodePudding user response:

You as long as the encrypted connection string value, or System. The Configuration. The ConfigurationManager not parse the

 

In c # using DES encryption to decrypt

CodePudding user response:

reference 1/f, big watermelon a WuYiJin reply:
you as long as the encrypted connection string value, or System. The Configuration. The ConfigurationManager not parse the

 

In c # using DES encryption to decrypt



Do you want to encrypt best appSettings this node,

If you like to use configurations that you can go to rewrite his implementation class, the analytical part can get rid of the original default,


AppSettings this class is to get the value in the AppSettings,

CodePudding user response:

reference 1/f, big watermelon a WuYiJin reply:
you as long as the encrypted connection string value, or System. The Configuration. The ConfigurationManager not parse the

 

In c # using DES encryption to decrypt


I am the encrypted string, I the encryption, before I was to decrypt the encrypted with aspnet_regiis - pef, and found that the key exists in the unit, on the other computer can not decrypt, so I just want to pass the code to encrypt and decrypt

CodePudding user response:

reference 2 floor XBodhi. Response:
Quote: refer to 1st floor big watermelon a WuYiJin reply:

You as long as the encrypted connection string value, or System. The Configuration. The ConfigurationManager not parse the

 

In c # using DES encryption to decrypt





Do you want to encrypt best appSettings this node,

If you like to use configurations that you can go to rewrite his implementation class, the analytical part can get rid of the original default,


AppSettings this class is to get the value in the AppSettings,


The moderator eldest brother, can give a case under the column study!!!!!!

CodePudding user response:

https://www.cnblogs.com/Gyoung/p/3194467.html

CodePudding user response:

.net project, it is easy to be decompiled, your decryption algorithm and key are obvious, the connection string is certainly
Using C/S architecture, you can avoid this problem

CodePudding user response:

refer to 7th floor autumn red fruit reply:
.net project, it is easy to be decompiled, your decryption algorithm and key are obvious, connection string, of course, is also a
Using C/S architecture, you can avoid this problem


I now use XBodhi moderator, the method of https://blog.csdn.net/weixin_38353287/article/details/80423144, so easy to compile?


<? The XML version="1.0" encoding="utf-8"?>


The connectionString="nQKha6pohSxXMMTLLd20TeZZRs82HXkFENladQLBDQ9Eg8FwII0frbk9dlYnKJ1G2GP1gW6EQ/J8699Mf2hpr/027 WNJLFNDTN

+ XLLTzQie3Ff44DmR3xoGM9InAYP0gXeCXAPSfubDVrvytxhWyvA=="/& gt;


CodePudding user response:

reference 2 floor XBodhi. Response:
Quote: refer to 1st floor big watermelon a WuYiJin reply:

You as long as the encrypted connection string value, or System. The Configuration. The ConfigurationManager not parse the

 

In c # using DES encryption to decrypt



Do you want to encrypt best appSettings this node,

If you like to use configurations that you can go to rewrite his implementation class, the analytical part can get rid of the original default,

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  •  Tags:  
  • C#
  • Related