aboutsummaryrefslogtreecommitdiffstats
path: root/.pepper-validation.mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-06-23 19:36:52 +0200
committerMattias Andrée <maandree@kth.se>2023-06-23 19:38:23 +0200
commit5d432bac33fe533c6f200b0acab1d33491bf6e0e (patch)
tree93d027fe7e46910a7e7c208b408d4dc3415ad314 /.pepper-validation.mk
parentUse libar2simplified instead of crypt as crypt has a verily limited imput size, and add -h to key2root-addkey, and add key2root-crypt (diff)
downloadkey2root-5d432bac33fe533c6f200b0acab1d33491bf6e0e.tar.gz
key2root-5d432bac33fe533c6f200b0acab1d33491bf6e0e.tar.bz2
key2root-5d432bac33fe533c6f200b0acab1d33491bf6e0e.tar.xz
Add pepper
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--.pepper-validation.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/.pepper-validation.mk b/.pepper-validation.mk
new file mode 100644
index 0000000..1cff2b5
--- /dev/null
+++ b/.pepper-validation.mk
@@ -0,0 +1,10 @@
+.POSIX:
+
+## DO NOT MODIFY THIS FILE
+
+PEPPER_VALIDATION_INPUT = $$argon2id$$v=19$$m=3072,t=32,p=4$$ABCDabcd1234$$*16
+PEPPER_VALIDATION_OUTPUT = $$argon2id$$v=19$$m=3072,t=32,p=4$$ABCDabcd1234$$NVf6KJj9PDPW8BYdduqPWA
+
+check:
+ +@test -x key2root-crypt || $(MAKE) key2root-crypt
+ test "$$(printf '' | ./key2root-crypt '$(PEPPER_VALIDATION_INPUT)')" = '$(PEPPER_VALIDATION_OUTPUT)'