public static string EncryptMessage(string secretMessage, string password, Encoding encoding)
        {
            if (string.IsNullOrEmpty(secretMessage))
            {
                throw new ArgumentException("Secret Message Required!", nameof(secretMessage));
            }
            var data = WeakPasswordDerivation.DerivePassword("password");

            return(EncryptMessage(secretMessage, data.Key, data.Salt, encoding));
        }
        public static byte[] DecryptMessage(byte[] encryptedMessage, string password)
        {
            if (encryptedMessage == null || encryptedMessage.Length == 0)
            {
                throw new ArgumentException("Encrypted Message Required!", nameof(encryptedMessage));
            }

            var data = WeakPasswordDerivation.DerivePassword(password);

            return(WeakSymmetricEncryption.Decrypt(encryptedMessage, data.Key, data.Salt.Length));
        }
        public static byte[] EncryptMessage(byte[] secretMessage, string password)
        {
            var data = WeakPasswordDerivation.DerivePassword(password);

            return(WeakSymmetricEncryption.Encrypt(secretMessage, data.Key, data.Salt));
        }