Line data Source code
1 : #region Copyright
2 : // // -----------------------------------------------------------------------
3 : // // <copyright company="Chinchilla Software Limited">
4 : // // Copyright Chinchilla Software Limited. All rights reserved.
5 : // // </copyright>
6 : // // -----------------------------------------------------------------------
7 : #endregion
8 :
9 : using System.Security.Cryptography;
10 :
11 : namespace Cqrs.Bus
12 : {
13 : /// <summary>
14 : /// A factory for creating new instances of <see cref="HashAlgorithm"/>, used for signing network messages.
15 : /// </summary>
16 : public class BuiltInHashAlgorithmFactory : IHashAlgorithmFactory
17 1 : {
18 : /// <summary>
19 : /// Creates a new instance of <see cref="HashAlgorithm"/> using <see cref="SHA512.Create()"/>.
20 : /// </summary>
21 1 : public HashAlgorithm Create()
22 : {
23 : return SHA512.Create();
24 : }
25 : }
26 : }
|