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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:04:47+00:00 2026-05-18T03:04:47+00:00

I started to program a simple encryption/decryption engine as a kick-start for a bigger

  • 0

I started to program a simple encryption/decryption engine as a kick-start for a bigger project for my school. I use assembly to program it and the logic until now is the following: i do some parsing for the arguments in the command line to take the input filename and output filename, then i read the input file into an inner buffer, i produce a pseudo-random byte to encrypt the buffer, and then i will try to add as a stub in the beginning of the buffer the decrypt routine and then save the new buffer into the output file that will be created. Is this the right way to do it? I’m asking because i have my doubts when i read the input file into the buffer. I think i read the whole file, while i should read only its code part? I’m not sure any suggestions/corrections are welcome. I’m using a 32-bit linux and assembly.

  • 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-18T03:04:47+00:00Added an answer on May 18, 2026 at 3:04 am

    add the decrypt routine and then save the new buffer into the output file

    Probably you are doing it wrong. If you wanna alter code size you have to do it with ELF program/section tables too. You can write a program which will read ELF header and add $DECRYPTION_ROUTINE_SIZE to size of .text section, do some copy etc.
    Hope it can be useful: http://www.skyfree.org/linux/references/ELF_Format.pdf

    You can append your decryption routine to .text of file, alter header and insert

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

Sidebar

Related Questions

I started a Rails project recently and decided to use RESTful controllers. I created
i just started learning swings. And thought of trying out a simple program, but
My Java application is started from within a native program through java.dll. This native
I have an executable that is started by a windows service, this program will
I started an application in Google App Engine right when it came out, to
I'm writing a simple program to help generate orders for a game I'm a
I made a simple java program that sends bytes to the parallel port, which
I'm trying to do a simple program for RMI. But, I'm getting the following
I found that handy opencv library and tried to program a simple imagemodifier with
I have a table with roughly 1 million rows. I'm doing a simple program

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.