| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2025-04-14 18:07:26 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2025-04-14 18:07:26 UTC |
| parent | 0608d704891bfc00bacf49561df393b41744fa10 |
| snikket/Hash.hx | +4 | -2 |
diff --git a/snikket/Hash.hx b/snikket/Hash.hx index 396de99..60f2b4c 100644 --- a/snikket/Hash.hx +++ b/snikket/Hash.hx @@ -54,11 +54,13 @@ class Hash { return null; } - public static function sha1(bytes: Bytes) { + @:allow(snikket) + private static function sha1(bytes: Bytes) { return new Hash("sha-1", Sha1.make(bytes).getData()); } - public static function sha256(bytes: Bytes) { + @:allow(snikket) + private static function sha256(bytes: Bytes) { return new Hash("sha-256", Sha256.make(bytes).getData()); }