ClrPlus.Core.Extensions.StringExtensions.ProtectForMachine C# (CSharp) Method

ProtectForMachine() public static method

encrypts the given string with the machine key and salt (defaults to "CoAppToolkit")
public static ProtectForMachine ( this text, string salt = "CoAppToolkit" ) : IEnumerable
text this The text.
salt string The salt.
return IEnumerable
        public static IEnumerable<byte> ProtectForMachine(this string text, string salt = "CoAppToolkit") {
            return ProtectBinaryForMachine((text ?? String.Empty).ToByteArray(), salt);
        }