BO4E-dotnet.Encryption/Anonymizer.cs
/// <summary>
///     check if a Marktlokation has been pseudonymized using <see cref="AnonymizerApproach.HASH" />.
///     As of 2019 it's impossible for a "real" Marktlokation to fulfill this condition.
/// </summary>
/// <param name="ma">Marktlokation</param>
/// <returns>true if the <see cref="Marktlokation.MarktlokationsId" /> fulfills the requirements of a hashed key</returns>
check if a Marktlokation has been pseudonymized using .
As of 2019 it's impossible for a "real" Marktlokation to fulfill this condition.
check if a Marktlokation has been pseudonymized using . As of 2019 it ' s impossible for a " real " Marktlokation to fulfill this condition .
public static bool HasHashedKey(Marktlokation ma)
        {
            return !string.IsNullOrWhiteSpace(ma.MarktlokationsId) &&
                   ma.MarktlokationsId.StartsWith(HashedMarktlokationPrefix);
        }
public static bool HasHashedKey ( Marktlokation ma ) { return ! string . IsNullOrWhiteSpace ( ma . MarktlokationsId ) && ma . MarktlokationsId . StartsWith ( HashedMarktlokationPrefix ) ; }
check if a Marktlokation has been pseudonymized using .
check if a Marktlokation has been pseudonymized using .
true if the  fulfills the requirements of a hashed key
true if the fulfills the requirements of a hashed key
ma
Marktlokation
None