Working key generator

This commit is contained in:
niten 2022-11-09 21:19:15 -08:00
parent 47444c97c7
commit f6f8aee433
2 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,7 @@
in rec {
packages = rec {
krb5-keygen = mkCljBin {
projectSrc = ./src;
projectSrc = ./.;
name = "org.fudo.kerberos/keygen";
main-ns = "kerberos.keygen.core";
jdkRunner = pkgs.jdk17_headless;

View File

@ -1,7 +1,8 @@
(ns kerberos.keygen.core
(:import (java.util Random)
(java.util.zip CRC32))
(:require [clojure.string :as str]))
(:require [clojure.string :as str])
(:gen-class))
(defn- string->seed [^String str]
(let [checksum (CRC32.)]