public static EncryptModelFileDigestInfoModel <T> EncryptModelToFile <T>(T t, string encryptFileFullPath, string secretKey = null, bool ifRandom = true, Encoding encoding = null, ICryptoModel cryptoModel = null) where T : class { return(GenericityHelper.GetInterface(cryptoModel, DefaultLanymyCrypto).EncryptModelToFile(t, encryptFileFullPath, secretKey, ifRandom, encoding)); }
public static EncryptModelFileDigestInfoModel <T> DecryptModelFromFile <T>(string encryptedFileFullPath, string secretKey = null, Encoding encoding = null, ICryptoModel cryptoModel = null) where T : class { return(GenericityHelper.GetInterface(cryptoModel, DefaultLanymyCrypto).DecryptModelFromFile <T>(encryptedFileFullPath, secretKey, encoding)); }
public static EncryptModelDigestInfoModel <T> DecryptModelFromBytes <T>(byte[] ecryptedBytes, string secretKey = null, Encoding encoding = null, ICryptoModel cryptoModel = null) where T : class { return(GenericityHelper.GetInterface(cryptoModel, DefaultLanymyCrypto).DecryptModelFromBytes <T>(ecryptedBytes, secretKey, encoding)); }