Click here to Skip to main content
15,867,324 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
GeneralRe: How to perform this requirement Pin
thatraja23-Jan-10 16:32
professionalthatraja23-Jan-10 16:32 
AnswerRe: How to perform this requirement Pin
Not Active23-Jan-10 8:07
mentorNot Active23-Jan-10 8:07 
QuestionASP.NET Deployment, how Pin
awedaonline23-Jan-10 3:03
awedaonline23-Jan-10 3:03 
AnswerRe: ASP.NET Deployment, how Pin
Vimalsoft(Pty) Ltd23-Jan-10 3:40
professionalVimalsoft(Pty) Ltd23-Jan-10 3:40 
GeneralRe: ASP.NET Deployment, how Pin
awedaonline24-Jan-10 22:23
awedaonline24-Jan-10 22:23 

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.