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 6178797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:31:34+00:00 2026-05-24T00:31:34+00:00

First some background. I have a file, for simplicity’s sake, let’s call it test.txt.

  • 0

First some background.

I have a file, for simplicity’s sake, let’s call it test.txt. I want to sign this file and sent it over to the server, which will verify the signature and decrypt it. The server has my public key already so there’s no need to send that.

So far, I’ve been able to generate a signature for the data I want to send(My code looks exactly like this example: GenSig.java). But the example creates a signature file, which means I have two files I need to send, the sig file and test.txt. My question is, can I do this without creating two separate files? I would ideally like to sent just one file with the data and the signature at the end.

  • 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-05-24T00:31:35+00:00Added an answer on May 24, 2026 at 12:31 am

    Well, this was a silly question after all. Combining the two files will result in the first file being modified! Therefore the signature data won’t match no matter what. The answer is, no, you can’t combine them. You are altering the file you are trying to prove hasn’t been altered in the course of transit! (Unless I send both in a zip file but I don’t want to go down that path). I suppose two files it is!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First some background information: We have three environments for our EJB3 application: test, development
First some background. I have a batch-type java process run from a DOS batch
First some background. I'm parsing a simple file format, and wish to re-use the
First, some background: I will have to work on code for a JSP that
I have this HTML file with some CSS styles, now I am trying to
First some background: VB.NET 2005 Application that accesses a MS-SQL back-end, using multiple Web
As usual, some background information first: Database A (Access database) - Holds a table
This is my first post here and I wanted to get some input from
First, let me use one sentence to let out some frustration: My god, developing
First, some background: Our product needs to integrate with the Lotus Notes client by

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.