ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ShortenedSHA1.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26class ShortenedSHA1 implements Algorithm
27{
28 public function getName(): string
29 {
30 return 'sha1';
31 }
32
33 public function after(string $signature): string
34 {
35 return substr($signature, 0, 8);
36 }
37
38}