HASH/SHA256

Puts the SHA-256 hash of the top item on the stack back to the top of the stack

Input stack: a

Output stack: b

PumpkinDB> "The quick brown fox jumps over the lazy dog" HASH/SHA256
0xd7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592

Allocation

Allocates for the result of the hashing

Errors

EmptyStack error if there are no items on the stack

Tests

works : "" HASH/SHA256 0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 EQUAL?.
empty_stack : [HASH/SHA256] TRY UNWRAP 0x04 EQUAL?.

results matching ""

    No results matching ""