FAES/AES/CryptUtils.cs
/// <summary>
/// Converts a byte array to a string, ensuring all NULL values are trimmed
/// </summary>
/// <param name="value">Byte Array</param>
/// <returns>String</returns>
Converts a byte array to a string, ensuring all NULL values are trimmed
Converts a byte array to a string ensuring all NULL values are trimmed
public static string ConvertBytesToString(byte[] value)
        {
            if (value != null)
                return Encoding.UTF8.GetString(value).TrimEnd('\0', '\n', '\r');
            else return "";
        }
public static string ConvertBytesToString ( byte [ ] value ) { if ( value != null ) return Encoding . UTF8 . GetString ( value ) . TrimEnd ( ' \0 ' , ' \n ' , ' \r ' ) ; else return " " ; }
Converts a byte array to a string, ensuring all NULL values are trimmed
Converts a byte array to a string ensuring all NULL values are trimmed
None
value
byte[]
None