Click here to Skip to main content
15,888,301 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: xml parsing in MFC Pin
adam george16-Feb-09 23:52
adam george16-Feb-09 23:52 
QuestionElevating the process to create the file at ACCESS_DENIED Position Pin
VCProgrammer19-Nov-08 19:52
VCProgrammer19-Nov-08 19:52 
AnswerRe: Elevating the process to create the file at ACCESS_DENIED Position Pin
SandipG 19-Nov-08 20:04
SandipG 19-Nov-08 20:04 
Questionhow to change panes in status bar of a dialog box application Pin
puppya19-Nov-08 19:44
puppya19-Nov-08 19:44 
AnswerRe: how to change panes in status bar of a dialog box application Pin
Iain Clarke, Warrior Programmer19-Nov-08 21:54
Iain Clarke, Warrior Programmer19-Nov-08 21:54 
Questiondecrypting a string question [modified] Pin
monsieur_jj19-Nov-08 19:42
monsieur_jj19-Nov-08 19:42 
AnswerRe: decrypting a string question Pin
Randor 19-Nov-08 21:52
professional Randor 19-Nov-08 21:52 
GeneralRe: decrypting a string question Pin
monsieur_jj19-Nov-08 22:09
monsieur_jj19-Nov-08 22:09 
Hi Randor,

Thanks btw this is the encrypt code from where the string passed is derived:

public static string Encrypt(string toEncrypt, bool useHashing)
       {
           byte[] keyArray;
           byte[] toEncryptArray = UTF8Encoding.UTF8.GetBytes(toEncrypt);

           System.Configuration.AppSettingsReader settingsReader = new AppSettingsReader();
           // Get the key from config file
           string key = (string)settingsReader.GetValue("SecurityKey", typeof(String));
           //System.Windows.Forms.MessageBox.Show(key);
           if (useHashing)
           {
               MD5CryptoServiceProvider hashmd5 = new MD5CryptoServiceProvider();
               keyArray = hashmd5.ComputeHash(UTF8Encoding.UTF8.GetBytes(key));
               hashmd5.Clear();
           }
           else
               keyArray = UTF8Encoding.UTF8.GetBytes(key);

           TripleDESCryptoServiceProvider tdes = new TripleDESCryptoServiceProvider();
           tdes.Key = keyArray;
           tdes.Mode = CipherMode.ECB;
           tdes.Padding = PaddingMode.PKCS7;

           ICryptoTransform cTransform = tdes.CreateEncryptor();
           byte[] resultArray = cTransform.TransformFinalBlock(toEncryptArray, 0, toEncryptArray.Length);
           tdes.Clear();
           return Convert.ToBase64String(resultArray, 0, resultArray.Length);
       }

GeneralRe: decrypting a string question Pin
CPallini19-Nov-08 22:16
mveCPallini19-Nov-08 22:16 
GeneralRe: decrypting a string question Pin
monsieur_jj20-Nov-08 15:34
monsieur_jj20-Nov-08 15:34 
GeneralRe: decrypting a string question Pin
Randor 20-Nov-08 21:58
professional Randor 20-Nov-08 21:58 
GeneralRe: decrypting a string question [modified] Pin
monsieur_jj20-Nov-08 22:09
monsieur_jj20-Nov-08 22:09 
AnswerRe: decrypting a string question Pin
CPallini19-Nov-08 21:59
mveCPallini19-Nov-08 21:59 
GeneralRe: decrypting a string question Pin
monsieur_jj20-Nov-08 22:05
monsieur_jj20-Nov-08 22:05 
QuestionModifying one cell in a CListCtrl Pin
sunny_vc19-Nov-08 18:58
sunny_vc19-Nov-08 18:58 
AnswerRe: Modifying one cell in a CListCtrl Pin
Hamid_RT19-Nov-08 20:28
Hamid_RT19-Nov-08 20:28 
AnswerRe: Modifying one cell in a CListCtrl Pin
Prasann Mayekar19-Nov-08 20:32
Prasann Mayekar19-Nov-08 20:32 
AnswerRe: Modifying one cell in a CListCtrl Pin
Nishad S19-Nov-08 20:41
Nishad S19-Nov-08 20:41 
GeneralRe: Modifying one cell in a CListCtrl Pin
sunny_vc19-Nov-08 21:37
sunny_vc19-Nov-08 21:37 
GeneralRe: Modifying one cell in a CListCtrl Pin
Nishad S19-Nov-08 22:00
Nishad S19-Nov-08 22:00 
GeneralRe: Modifying one cell in a CListCtrl Pin
sunny_vc19-Nov-08 22:40
sunny_vc19-Nov-08 22:40 
GeneralRe: Modifying one cell in a CListCtrl Pin
Nishad S19-Nov-08 23:06
Nishad S19-Nov-08 23:06 
GeneralRe: Modifying one cell in a CListCtrl Pin
sunny_vc20-Nov-08 22:02
sunny_vc20-Nov-08 22:02 
GeneralRe: Modifying one cell in a CListCtrl Pin
Nishad S20-Nov-08 22:13
Nishad S20-Nov-08 22:13 
QuestionGet Documents Path Pin
MsmVc19-Nov-08 18:40
MsmVc19-Nov-08 18:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.