Pam DES support

This commit is contained in:
2026-07-13 23:53:56 -03:00
parent 628878e055
commit 11cfd3f092
4 changed files with 322 additions and 5 deletions
+15
View File
@@ -0,0 +1,15 @@
package main
import "testing"
func TestDESCryptCanonical(t *testing.T) {
got, err := desCrypt("rasmuslerdorf", "rl")
if err != nil {
t.Fatal(err)
}
want := "rl.3StKT.4T8M"
t.Logf("got=%q want=%q", got, want)
if got != want {
t.Errorf("desCrypt mismatch: got %q want %q", got, want)
}
}