Click here to Skip to main content
15,885,537 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to open document in asp.net? Pin
JC.KaNNaN24-Jan-10 23:18
JC.KaNNaN24-Jan-10 23:18 
GeneralRe: How to open document in asp.net? Pin
Not Active25-Jan-10 1:13
mentorNot Active25-Jan-10 1:13 
QuestionVisual Studio Web Developer 2008 Pin
Roy Shoa24-Jan-10 1:11
Roy Shoa24-Jan-10 1:11 
QuestionProblem showing the correct value in a gridview Pin
AndyASPVB24-Jan-10 0:59
AndyASPVB24-Jan-10 0:59 
AnswerRe: Problem showing the correct value in a gridview Pin
Not Active24-Jan-10 2:33
mentorNot Active24-Jan-10 2:33 
QuestionFormsAuthentication.SetAuthCookie not working??? or is my logic wrong? [modified] Pin
wilsonmanmcp24-Jan-10 0:19
wilsonmanmcp24-Jan-10 0:19 
AnswerRe: FormsAuthentication.SetAuthCookie not working??? or is my logic wrong? Pin
Not Active24-Jan-10 2:35
mentorNot Active24-Jan-10 2:35 
AnswerRe: FormsAuthentication.SetAuthCookie not working??? or is my logic wrong? Pin
meeram39524-Jan-10 6:01
meeram39524-Jan-10 6:01 
AnswerRe: FormsAuthentication.SetAuthCookie not working??? or is my logic wrong? Pin
wilsonmanmcp24-Jan-10 12:07
wilsonmanmcp24-Jan-10 12:07 
AnswerRe: FormsAuthentication.SetAuthCookie not working??? or is my logic wrong? Pin
wilsonmanmcp25-Jan-10 0:32
wilsonmanmcp25-Jan-10 0:32 
QuestionASP.NET Cyrilic problem in DB Pin
hed_kandi23-Jan-10 22:29
hed_kandi23-Jan-10 22:29 
AnswerRe: ASP.NET Cyrilic problem in DB Pin
Not Active24-Jan-10 2:31
mentorNot Active24-Jan-10 2:31 
QuestionEncrypting The string Pin
RajpootRohan23-Jan-10 21:26
professionalRajpootRohan23-Jan-10 21:26 
Hi to all,

Actually I am working on a e-commerce portal. We are using sage pay (payment gateway) for the transaction.While sending data to sage for transaction, the data should be encrypted. For this data should be encrypted using Simple XOR algorithm and then should be Base64 encoded. Can anyone have any idea about this. I am trying like this:

public void gencrypt()
{
    string mycrypt = "";
    key = "EnNj72dXmScJUX45";
    string mystring = strPost;
    string temp = "";

    SimpleXor(mystring, key);
    Base64Encode(temp);
}

public void SimpleXor(string strIn, string strkey)
{
    int iInIndex;
    int iKeyIndex;
    string strReturn;

    if (strIn.Length == 0 || strkey.Length == 0)
    {
        return;
    }
    iInIndex = 1;
    iKeyIndex = 1;
    strReturn = "";
    for (int i = 0; i <= strIn.Length; i++)
    {
        for (int j = 0; j <= strkey.Length;j++ )
        {
            strReturn = strReturn + (strIn[i] ^ strkey[j]);
            iInIndex = iInIndex + 1;
            if (iKeyIndex == strIn.Length)
            {
                iKeyIndex = 0;
                iKeyIndex = iKeyIndex + 1;
            }
        }
    }
}

public void Base64Encode(string strplain)
{

}


Please assist me..

cheers,
sneha

AnswerRe: Encrypting The string [modified] Pin
Garth J Lancaster23-Jan-10 21:51
professionalGarth J Lancaster23-Jan-10 21:51 
Questionmodal popup extender Pin
Hemant Thaker23-Jan-10 7:29
Hemant Thaker23-Jan-10 7:29 
AnswerRe: modal popup extender Pin
Not Active23-Jan-10 8:18
mentorNot Active23-Jan-10 8:18 
GeneralRe: modal popup extender Pin
Hemant Thaker23-Jan-10 9:17
Hemant Thaker23-Jan-10 9:17 
QuestionHow to perform this requirement Pin
Nath23-Jan-10 5:50
Nath23-Jan-10 5:50 
AnswerRe: How to perform this requirement Pin
thatraja23-Jan-10 7:05
professionalthatraja23-Jan-10 7:05 
GeneralRe: How to perform this requirement Pin
Not Active23-Jan-10 8:12
mentorNot Active23-Jan-10 8:12 
GeneralRe: How to perform this requirement Pin
thatraja23-Jan-10 9:14
professionalthatraja23-Jan-10 9:14 
GeneralRe: How to perform this requirement Pin
Not Active23-Jan-10 9:33
mentorNot Active23-Jan-10 9:33 
GeneralRe: How to perform this requirement Pin
thatraja23-Jan-10 10:17
professionalthatraja23-Jan-10 10:17 
GeneralRe: How to perform this requirement Pin
Nath24-Jan-10 1:02
Nath24-Jan-10 1:02 
GeneralRe: How to perform this requirement Pin
Nath23-Jan-10 15:29
Nath23-Jan-10 15:29 

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.