sha0 hashing c package for converting passwords in softether config

This commit is contained in:
sagar 2025-07-14 13:54:09 +00:00
parent 5fff2a6a16
commit 8a1f63b557
4 changed files with 200 additions and 1 deletions

20
sha0/default.nix Normal file
View file

@ -0,0 +1,20 @@
{ pkgs, stdenv, ... }:
stdenv.mkDerivation {
pname = "sha0";
version = "0.1.0";
src = ./.;
buildPhase = ''
cc -O2 -o sha0 sha0.c main.c
'';
installPhase = ''
mkdir -p $out/bin
cp sha0 $out/bin/
'';
meta = with pkgs.lib; {
description = "SHA-0 hashing CLI tool";
};
}