secp256k1 icon indicating copy to clipboard operation
secp256k1 copied to clipboard

pls Add SHA256 iteration

Open Noname400 opened this issue 2 years ago • 2 comments

Good afternoon, please add to the DLL possibly recalculating SHA256 as many times as needed. e.g. get_sha256(input_bytes, iteration) get_sha256(b'a', 2048)

Noname400 avatar Jun 24 '22 03:06 Noname400

OK. Will see about it. Although it is possible to just write a python wrapper function without touching dll, in case.

iceland2k14 avatar Jul 03 '22 06:07 iceland2k14

def bin_slowsha(string): string = from_string_to_bytes(string) orig_input = string for i in range(100000): string = hashlib.sha256(string + orig_input).digest() return string

Noname400 avatar Jul 03 '22 11:07 Noname400