aboutsummaryrefslogtreecommitdiff
path: root/back-end/src/Model
diff options
context:
space:
mode:
Diffstat (limited to 'back-end/src/Model')
-rw-r--r--back-end/src/Model/ChannelManager.cs2
-rw-r--r--back-end/src/Model/PostManager.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/back-end/src/Model/ChannelManager.cs b/back-end/src/Model/ChannelManager.cs
index 22dbab9..7364b46 100644
--- a/back-end/src/Model/ChannelManager.cs
+++ b/back-end/src/Model/ChannelManager.cs
@@ -120,7 +120,7 @@ namespace Content.Publishing.Blog.Admin.Model
public static string ComputeContextId(IChannelContext context)
{
//Context-id is the hash of the base dir and index file path
- return ManagedHash.ComputeHexHash($"{context.BaseDir}/{context.IndexPath}", HashAlg.SHA1).ToLowerInvariant();
+ return ManagedHash.ComputeHash($"{context.BaseDir}/{context.IndexPath}", HashAlg.SHA1, HashEncodingMode.Hexadecimal).ToLowerInvariant();
}
///<inheritdoc/>
diff --git a/back-end/src/Model/PostManager.cs b/back-end/src/Model/PostManager.cs
index 64f09b2..c626375 100644
--- a/back-end/src/Model/PostManager.cs
+++ b/back-end/src/Model/PostManager.cs
@@ -233,7 +233,7 @@ namespace Content.Publishing.Blog.Admin.Model
*/
static void ComputePostId(PostMeta post)
{
- post.Id = ManagedHash.ComputeHexHash($"{post.Title}.{post.Author}.{post.Summary}.{post.Date}", HashAlg.SHA1).ToLowerInvariant();
+ post.Id = ManagedHash.ComputeHash($"{post.Title}.{post.Author}.{post.Summary}.{post.Date}", HashAlg.SHA1, HashEncodingMode.Hexadecimal).ToLowerInvariant();
}
internal record class ReqLogger(ILogProvider Log) : IRequestLogger