FAES/AES/Compatibility/MetaDataFAES.cs
/// <summary>
/// Gets the Version of FAES used to encrypt the file
/// </summary>
/// <returns>FAES Version</returns>
Gets the Version of FAES used to encrypt the file
Gets the Version of FAES used to encrypt the file
public string GetEncryptionVersion()
        {
            switch (_faesMode)
            {
                case "FAESv2":
                    if (_encryptionVersion != null)
                    {
                        string ver = ConvertBytesToString(_encryptionVersion);
                        if (ver.Contains("DEV"))
                            return ver.Split('_')[0];
                        else if (!String.IsNullOrEmpty(ver))
                            return ver;
                    }
                    return "v1.1.0 — v1.1.2";
                case "FAESv1":
                    return "v1.0.0";
                default:
                    return "Pre-v1.0.0";
            }
        }
public string GetEncryptionVersion ( ) { switch ( _faesMode ) { case " " : if ( _encryptionVersion != null ) { string ver = ConvertBytesToString ( _encryptionVersion ) ; if ( ver . Contains ( " " ) ) return ver . Split ( ' ' ) [ 0 ] ; else if ( ! String . IsNullOrEmpty ( ver ) ) return ver ; } return " case " " : return " " ; default : return " " ; } }
Gets the Version of FAES used to encrypt the file
Gets the Version of FAES used to encrypt the file
None