initial COmmit: Add KB Antora Importer plugin files
This commit is contained in:
12
kb-antora-importer/includes/Import/Checksum.php
Normal file
12
kb-antora-importer/includes/Import/Checksum.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace KbAntoraImporter\Import;
|
||||
|
||||
final class Checksum
|
||||
{
|
||||
public static function content(string $content): string
|
||||
{
|
||||
return hash('sha256', $content);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user