예제 #1
0
 public static EncryptStringFileDigestInfoModel DecryptBytesFromFile(string encryptedFileFullPath, string secretKey = null, Encoding encoding = null, ICryptoBytes cryptoBytes = null)
 {
     return(GenericityHelper.GetInterface(cryptoBytes, DefaultLanymyCrypto).DecryptBytesFromFile(encryptedFileFullPath, secretKey, encoding));
 }
예제 #2
0
 public static EncryptBytesDigestInfoModel DecryptBytesFromBytes(byte[] bytesToDecrypt, string secretKey = null, Encoding encoding = null, ICryptoBytes cryptoBytes = null)
 {
     return(GenericityHelper.GetInterface(cryptoBytes, DefaultLanymyCrypto).DecryptBytesFromBytes(bytesToDecrypt, secretKey, encoding));
 }
예제 #3
0
 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));
 }
예제 #4
0
 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));
 }