/// <summary> /// Makes a simple password based encryption of a string and returns the result as a string /// <seealso cref="Decrypt(string, string)"/> /// </summary> /// <param name="unencryptedString">The string to encrypt</param> /// <param name="password">The password to encrypt with</param> /// <returns>The encrypted string</returns> /// <remarks> /// Please understand the security limitations of symmetrical encryption with a known clear-text password. /// </remarks> public static string Encrypt(this string unencryptedString, string password) => AESGCM.SimpleEncryptWithPassword(unencryptedString, password);