Password hashing service.
SHA1 Password Encoding Service - (SanteDB.Core.Api)
...
<section xsi:type="ApplicationServiceContextConfigurationSection" threadPoolSize="4">
<serviceProviders>
...
<add type="SanteDB.Core.Security.SHA1PasswordHashingService, SanteDB.Core.Api, Version=3.0.1980.0, Culture=neutral, PublicKeyToken=null" />
...
</serviceProviders>
SHA256 Password Encoding Service - (SanteDB.Core.Api)
...
<section xsi:type="ApplicationServiceContextConfigurationSection" threadPoolSize="4">
<serviceProviders>
...
<add type="SanteDB.Core.Security.SHA256PasswordHashingService, SanteDB.Core.Api, Version=3.0.1980.0, Culture=neutral, PublicKeyToken=null" />
...
</serviceProviders>
/// Example Implementation
using SanteDB.Core.Security.Services;
/// Other usings here
public class MyPasswordHashingService : SanteDB.Core.Security.Services.IPasswordHashingService {
public String ServiceName => "My own IPasswordHashingService service";
/// <summary>
/// Compute the password hash
/// </summary>
public String ComputeHash(String password){
throw new System.NotImplementedException();
}
/// <summary>
/// Compute the password hash
/// </summary>
public Byte[] ComputeHash(Byte[] data){
throw new System.NotImplementedException();
}
}