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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:25:18+00:00 2026-05-11T14:25:18+00:00

I have to encrypt the output file in A application, then decrypt it in

  • 0

I have to encrypt the output file in A application, then decrypt it in B application, but I found there are some limitations with MS encryption, if I encrypt a 1000 bytes buffer and then want to decrypt start for different position with different size in B application, the return values are error. Is there any encryption can meet my requirement? Thanks. Here is my sample codes:

clTemp.EncryptDataDirectly(buffer, 1000); clTemp.DecryptDataDirectly(buffer + 1, 500); 
  • 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. 2026-05-11T14:25:19+00:00Added an answer on May 11, 2026 at 2:25 pm

    Disclaimer: I don’t know this Windows API for encryption. So this is just a general outline of the problem. Use your common sense and the documentation to find out more.

    There a two possibilities:

    1. Stream-ciphers. They encrypt one byte (or maybe even bit) at the time and you have to start at the beginning of the encrypted stream to decrypt it properly. Some ciphers have synchronization abilities that help you recover after some small error in the transmission.

    2. Block-ciphers. They encrypt fixed sized blocks, 64 or 128 bit are popular block sizes. But they can use different modes for encryption. ECB for example encrypts every block by itself. you could jump into the middle of your file, grab a block and decrypt it. But it leaves you open to known plaintext attacks where an attacker knows some encrypted text and tries to find the key you used. CBC or some other mode with feedback is more secure, but in this case you need again to start decrypting at the beginning of your encrypted file.

    Here are some relevant Wikipedia articles:

    • Block ciphers on Wikipedia
    • Block cipher modes of operation on Wikipedia
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to encrypt the username and password for a native Apple application. But
Is there any way, using C#, to monitor a specific file then change its
I have been trying to encrypt/ decrypt a sqlite database in my iPhone project.
I have a SQL Server database with some sensitive info. I want to encrypt
I have a secret key that was sent to me as a file so
I am trying to use BouncyCastle to encrypt a file using the PKCS 7
Many of the encryption techniques I've seen can easily encrypt a simple 8 digit
I have used Oracle Advanced Security to encrypt data during data transfer. I have
I am doing a simple AES encryption in Java: Cipher cipher = Cipher.getInstance(AES); cipher.init(Cipher.ENCRYPT_MODE,
I'm posting data to REST URI, in the form of xml snippet with header

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.