Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8508047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:02:48+00:00 2026-06-11T03:02:48+00:00

I am working on Securepay Integration with my ASP.NET web page, as per their

  • 0

I am working on Securepay Integration with my ASP.NET web page, as per their documentation I am generating SHA1 from following information:

The Fingerprint is a SHA1 hash of the above fields plus the SecurePay Transaction Password in this order with a pipe separator “|”:

  1. EPS_MERCHANTID
  2. Transaction Password (supplied by SecurePay Support)
  3. EPS_TXNTYPE (as 0)
  4. EPS_REFERENCEID (for testing purpose 123)
  5. EPS_AMOUNT (for testing purpose 100.00)
  6. EPS_TIMESTAMP (for testing purpose 20120910203805)

Though I have followed above given instruction but whenever I am doing payment it says “Invalid Fingerprint“. Example code:

FormsAuthentication
  .HashPasswordForStoringInConfigFile("xxx|xxx|0|123|100.00|201‌20910203805","sha1")
  .ToLower();`
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T03:02:50+00:00Added an answer on June 11, 2026 at 3:02 am

    Check that you are ending the line correctly, either with a trailing ‘|’ or removing unnecessary trailing ‘|’.

    Also check that the method you are using doesn’t add anything else inside the method that would distort what you are expecting. (I am thinking a salt based upon the particular machine you are on don’t know if it does this or not)

    I have been attempting to generate a hash here http://shagenerator.com/ using this:

    ABC|password|1|Te‌​st Reference|1.00|20120912123421
    

    gives:

    25a1804285bafc078f45e41056bcdc42e0508b6f
    

    Can you get the same key with your code using my input?

    Update:

    Can you try this method instead of HashPasswordForStoringInConfigFile() and see if you get closer:

    private string GetSHA1String(string text)
    {
        var UE = new UnicodeEncoding();
        var message = UE.GetBytes(text);
    
        var hashString = new SHA1Managed(); 
        var hex = string.Empty;
    
        var hashValue = hashString.ComputeHash(message); 
        foreach (byte b in hashValue)
        { 
            hex += String.Format("{0:x2}", b);
        } 
    
        return hex;
    }
    

    UPDATE 2:

    Check your encoding, I discovered that I can match the hash output with:

    var UE = new UTF8Encoding();
    

    UPDATE 3:

    The following code worked for me in a console app, I was seeing the hashes generate the same value and I was able to compare the output to http://shagenerator.com/ also:

    using System;
    using System.Security.Cryptography;
    using System.Text;
    using System.Web.Security;
    
    namespace SecurepayPaymentGatewayIntegrationIssue
    {
        class Program
        {
            static void Main(string[] args)
            {
                var text = @"ABC|password|1|Te‌​st Reference|1.00|20120912123421";
                Console.WriteLine(GetSHA1String(text));
    
                Console.WriteLine(FormsAuthentication.HashPasswordForStoringInConfigFile(text, "sha1").ToLower());
    
                Console.ReadKey();
            }
    
            private static string GetSHA1String(string text)
            {
                var UE = new UTF8Encoding();// ASCIIEncoding(); // UnicodeEncoding();
                var message = UE.GetBytes(text);
    
                var hashString = new SHA1Managed();
                var hex = string.Empty;
    
                var hashValue = hashString.ComputeHash(message);
                foreach (byte b in hashValue)
                {
                    hex += String.Format("{0:x2}", b);
                }
    
                return hex;
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question builds on the following question: How to get Elmah working with ASP.NET
Working on a website http://www.ArenaText.com written in asp.net with Microsoft AJAX control toolkit. iPad
I'm working on an app that will provide data from a web server to
Working in an asp.net 2.0 (VB) environment, I already have code that can generate
Working on game where plates will be falling from top to bottom. Some plates
Working on calling a C function from my asm project. I'm trying to push
Working sample using one Table SELECT t.* FROM ( SELECT TITLE.name, (TITLE.value-TITLE.msp) AS Lower,
Working example: http://alpha.jsfiddle.net/gTpWv/ Both of the methods work separately, but once regexp for smilies
I'm working on a web app for my Masters project. It's a system for
Working with AJAX, I encountered the following problem: http://jsbin.com/iriquf/1 data variable is a basic

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.