public static EncryptStringFileDigestInfoModel DecryptBytesFromFile(string encryptedFileFullPath, string secretKey = null, Encoding encoding = null, ICryptoBytes cryptoBytes = null) { return(GenericityHelper.GetInterface(cryptoBytes, DefaultLanymyCrypto).DecryptBytesFromFile(encryptedFileFullPath, secretKey, encoding)); }
public static EncryptBytesDigestInfoModel DecryptBytesFromBytes(byte[] bytesToDecrypt, string secretKey = null, Encoding encoding = null, ICryptoBytes cryptoBytes = null) { return(GenericityHelper.GetInterface(cryptoBytes, DefaultLanymyCrypto).DecryptBytesFromBytes(bytesToDecrypt, secretKey, encoding)); }
public static EncryptStringFileDigestInfoModel EncryptBytesToFile(byte[] sourceBytes, string encryptFileFullPath, string secretKey = null, bool ifRandom = true, Encoding encoding = null, ICryptoBytes cryptoBytes = null) { return(GenericityHelper.GetInterface(cryptoBytes, DefaultLanymyCrypto).EncryptBytesToFile(sourceBytes, encryptFileFullPath, secretKey, ifRandom, encoding)); }
public static EncryptBytesDigestInfoModel EncryptBytesToBytes(byte[] bytesToEncrypt, string secretKey = null, bool ifRandom = true, Encoding encoding = null, ICryptoBytes cryptoBytes = null) { return(GenericityHelper.GetInterface(cryptoBytes, DefaultLanymyCrypto).EncryptBytesToBytes(bytesToEncrypt, secretKey, ifRandom, encoding)); }