Click here to Skip to main content
16,012,759 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questiondebug and release Pin
saravanan0523-Nov-06 6:01
saravanan0523-Nov-06 6:01 
AnswerRe: debug and release Pin
Christian Graus23-Nov-06 9:21
protectorChristian Graus23-Nov-06 9:21 
QuestionGridView Row Id Capture Pin
marconi Flangepants23-Nov-06 4:43
marconi Flangepants23-Nov-06 4:43 
QuestionCode to convert HTML file to XML file Pin
ArunKumarParthiban23-Nov-06 3:25
ArunKumarParthiban23-Nov-06 3:25 
AnswerRe: Code to convert HTML file to XML file Pin
Christian Graus23-Nov-06 9:23
protectorChristian Graus23-Nov-06 9:23 
GeneralRe: Code to convert HTML file to XML file Pin
ArunKumarParthiban24-Nov-06 0:44
ArunKumarParthiban24-Nov-06 0:44 
QuestionEncryption [modified] Pin
alexfromto23-Nov-06 3:20
alexfromto23-Nov-06 3:20 
AnswerRe: Encryption Pin
Britney S. Morales23-Nov-06 4:58
Britney S. Morales23-Nov-06 4:58 
I got another solution

You must to create a new class sheet (name.CS)

Add these libraries

using System.Security.Cryptography;
using System.Text;
using System.IO;
using System.Xml;

I made these functions based in a codeproject encrypt solution

<br />
public string EncryptProcess(string password)<br />
{<br />
   string passwordEncryted = Encrypt(password, "&%#@?,:*");<br />
   return (passwordEncryted);<br />
}<br />
<br />
private static String Encrypt(String strText, String strEncrKey)<br />
{<br />
        byte[] bKey = new byte[8];<br />
        byte[] IV = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF };<br />
<br />
        try<br />
        {<br />
            bKey = System.Text.Encoding.UTF8.GetBytes(strEncrKey.Substring(0, 8));<br />
            DESCryptoServiceProvider des = new DESCryptoServiceProvider();<br />
            Byte[] inputByteArray = Encoding.UTF8.GetBytes(strText);<br />
            MemoryStream ms = new MemoryStream();<br />
            CryptoStream cs = new CryptoStream(ms, des.CreateEncryptor(bKey, IV), CryptoStreamMode.Write);<br />
            cs.Write(inputByteArray, 0, inputByteArray.Length);<br />
            cs.FlushFinalBlock();<br />
            return Convert.ToBase64String(ms.ToArray());<br />
<br />
        }<br />
        catch (Exception ex)<br />
        {<br />
            return ex.Message;<br />
        }<br />
    }<br />
<br />


You must to invoice the first process
Ex: string pass = EncryptProcess("SGC"); //Uppercase
the answer is the string "2zhZqCYvfJc="

This is the Encrypt process, write me if works for you..
And i will write the Decrypt process Poke tongue | ;-P


keep Learning and you never will be out of date...

GeneralRe: Encryption Pin
alexfromto23-Nov-06 5:22
alexfromto23-Nov-06 5:22 
GeneralRe: Encryption Pin
Britney S. Morales24-Nov-06 4:21
Britney S. Morales24-Nov-06 4:21 
GeneralRe: Encryption Pin
alexfromto24-Nov-06 4:48
alexfromto24-Nov-06 4:48 
QuestionEvent Handling Pin
R.Palanivel23-Nov-06 3:16
R.Palanivel23-Nov-06 3:16 
AnswerRe: Event Handling Pin
sam L24-Nov-06 20:30
sam L24-Nov-06 20:30 
QuestionSorting gridview through javascript Pin
ayeleteric23-Nov-06 2:22
ayeleteric23-Nov-06 2:22 
Question"datagrid paging" Pin
ravikiranreddydharmannagari23-Nov-06 1:01
ravikiranreddydharmannagari23-Nov-06 1:01 
QuestionChanging property through javascript Pin
aaraaayen23-Nov-06 0:55
aaraaayen23-Nov-06 0:55 
AnswerRe: Changing property through javascript Pin
ayeleteric23-Nov-06 2:25
ayeleteric23-Nov-06 2:25 
AnswerRe: Changing property through javascript Pin
Guffa23-Nov-06 3:09
Guffa23-Nov-06 3:09 
GeneralRe: Changing property through javascript Pin
ayeleteric23-Nov-06 4:42
ayeleteric23-Nov-06 4:42 
AnswerRe: Changing property through javascript Pin
Guffa23-Nov-06 7:48
Guffa23-Nov-06 7:48 
GeneralRe: Changing property through javascript Pin
ayeleteric24-Nov-06 21:01
ayeleteric24-Nov-06 21:01 
AnswerRe: Changing property through javascript Pin
Guffa25-Nov-06 5:20
Guffa25-Nov-06 5:20 
GeneralRe: Changing property through javascript Pin
aaraaayen23-Nov-06 18:28
aaraaayen23-Nov-06 18:28 
GeneralRe: Changing property through javascript Pin
ayeleteric24-Nov-06 21:08
ayeleteric24-Nov-06 21:08 
AnswerRe: Changing property through javascript Pin
RaviJJain23-Nov-06 20:56
RaviJJain23-Nov-06 20:56 

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.