Packages

A compile-time safe database library for Gleam - Ecto-inspired schemas, composable queries, and adapter-based persistence

Current section

Files

Jump to
cquill src cquill_crypto_ffi.erl
Raw

src/cquill_crypto_ffi.erl

-module(cquill_crypto_ffi).
-export([hash_sha256/1]).
%% Hash a string using SHA-256
hash_sha256(String) when is_binary(String) ->
crypto:hash(sha256, String).