예제 #1
0
 public static CryptedString Crypt(CryptedString buffer, CryptedString key, CryptedString iv, bool encrypt = true, string algorithm = "aes", string encoding = "utf-8")
 {
     return(new CryptedString(
                ByteCrypt.Crypt(
                    buffer.GetBytes(),
                    key.GetBytes(),
                    iv.GetBytes(),
                    encrypt,
                    algorithm
                    )
                ));
 }
예제 #2
0
        public static CryptedString Crypt(CryptedString buffer, CryptedString key, CryptedString iv, bool encrypt = true, string algorithm = "aes", string encoding = "utf-8")
        {

            return new CryptedString(
                        ByteCrypt.Crypt(
                            buffer.GetBytes(),
                            key.GetBytes(),
                            iv.GetBytes(),
                            encrypt,
                            algorithm
                        )
                );

        }