checksum

None to Empty List

None to Empty List Question: I have to find the sum of two that are equivalent to value s, can’t use dictionaries, only sets, arrays, and lists. If none, then I have to return an empty list. This is my code, I tried to remove None using if statement, but it didn’t work, not sure …

Total answers: 2

Python code for generating valid BIP-39 mnemonic words for a bitcoin wallet not working

Python code for generating valid BIP-39 mnemonic words for a bitcoin wallet not working Question: I am trying to generate valid BIP-39 mnemonic words for a bitcoin wallet in Python, but I am encountering an issue with the generated words being rejected by verification tools. I have followed the guidelines outlined in the BIP-39 standard, …

Total answers: 1

How to verify integrity of files using digest in python (SHA256SUMS)

How to verify integrity of files using digest in python (SHA256SUMS) Question: I have a set of files and a SHA256SUMS digest file that contains a sha256() hash for each of the files. What’s the best way to verify the integrity of my files with python? For example, here’s how I would download the Debian …

Total answers: 3

CRC32 calculation in Python without using libraries

CRC32 calculation in Python without using libraries Question: I have been trying to get my head around CRC32 calculations without much success, the values that I seem to get do not match what I should get. I am aware that Python has libraries that are capable of generating these checksums (namely zlib and binascii) but …

Total answers: 2

Generating one MD5/SHA1 checksum of multiple files in Python

Generating one MD5/SHA1 checksum of multiple files in Python Question: I have looked through several topics about calculating checksums of files in Python but none of them answered the question about one sum from multiple files. I have several files in sub directories and would like to determine if there was any change in one …

Total answers: 3

Generating an MD5 checksum of a file

Generating an MD5 checksum of a file Question: Is there any simple way of generating (and checking) MD5 checksums of a list of files in Python? (I have a small program I’m working on, and I’d like to confirm the checksums of the files). Asked By: Alexander || Source Answers: There is a way that’s …

Total answers: 7