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

  • Home
  • SEARCH
  • 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 8063627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:06:21+00:00 2026-06-05T11:06:21+00:00

Preface: I am doing a data-import that has a verify-commit phase. The idea is

  • 0

Preface:

I am doing a data-import that has a verify-commit phase. The idea is that: the first phase allows taking data from various sources and then running various insert/update/validate operations on a database. The commit is rolled back but a “verification hash/checksum” is generated. The commit phase is the same, but, if the “verification hash/checksum” is the same then the operations will be committed. (The database will be running under the appropriate isolation levels.)

Restrictions:

  • Input reading and operations are forward-read-once only
  • Do not want to pre-create a stream (e.g. writing to MemoryStream not desirable) as there may be a lot of data. (It would work on our servers/load, but pretend memory is limited.)
  • Do not want to “create my own”. (I am aware of available code like CRC-32 by Damien which I could use/modify but would prefer something “standard”.)

And what I (think I am) looking for:

A way to generate a Hash (e.g. SHA1 or MD5?) or a Checksum (e.g. CRC32 but hopefully more) based on input + operations. (The input/operations could themselves be hashed to values more fitting to the checksum generation but it would be nice just to be able to “write to steam”.)

So, the question is:

How to generate a Running Hash (or Checksum) in C#?

Also, while there are CRC32 implementations that can be modified for a Running operation, what about running SHAx or MD5 hashes?

Am I missing some sort of handy Stream approach than could be used as an adapter?

(Critiques are welcome, but please also answer the above as applicable. Also, I would prefer not to deal with threads. 😉

  • 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-05T11:06:23+00:00Added an answer on June 5, 2026 at 11:06 am

    Hashes have a build and a finalization phase. You can shove arbitrary amounts of data in during the build phase. The data can be split up as you like. Finally, you finish the hash operation and get your hash.

    You can use a writable CryptoStream to write your data. This is the easiest way.

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

Sidebar

Related Questions

Preface: First time really using JavaScript + jQuery, so my problem likely stems from
Let me preface that I'm new to programming for Android. I've been doing my
Preface: I'm know that in most cases using a volatile field won't yield any
Preface I've rarely ever been a JS developer and this is my first attempt
Preface: I'm very new to objective-c and I am doing simple exercises to learn
To preface, this is my first attempt at MVVM... I buy it, I'm just
Preface: I don't have experience with rules engines, building rules, modeling rules, implementing data
I'll preface this and say that I'm new to Silverlight development by about week
PREFACE: Yes we're moving away from VSS in the next few months. One of
Preface: I am an inexperienced java programmer handed one of his first assignments. If

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.