Packages
fragmentation
0.1.0
fragmentation — encoded possibility space. content-addressed, arbitrary depth, circular-reflexive. reality for git.
Current section
Files
Jump to
Current section
Files
src/fragmentation_ffi.erl
-module(fragmentation_ffi).
-export([sha256/1]).
sha256(Data) ->
Hash = crypto:hash(sha256, Data),
list_to_binary(
lists:flatten(
[io_lib:format("~2.16.0b", [B]) || <<B>> <= Hash]
)
).