From d4562e3683abb40cd8e9bd248b1ad34d3dd1f673 Mon Sep 17 00:00:00 2001 From: Marcello Ceschia Date: Sun, 15 Mar 2020 22:29:09 +0100 Subject: [PATCH] add crypto lib --- lib/crypto.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 lib/crypto.php diff --git a/lib/crypto.php b/lib/crypto.php new file mode 100644 index 0000000..447e2d7 --- /dev/null +++ b/lib/crypto.php @@ -0,0 +1,30 @@ +file = $file; + } + + public function hashAsBase64(int $hashAlg) : string { + return ""; + } +} + +class Crypto { + + public static function certificateHashAsBase64(string $certificateFile, int $hashAlg) : string { + return new Certificate($certificateFile) + .hashAsBase64($hashAlg); + } +} + +class Signer { +} \ No newline at end of file