title: Proper data encryption with a user-set password in python3
body: <p>I have been looking for a proper data encryption library
  in python for a long while, today I needed it once again, cannot
  find anything, so is there any way to encrypt data using a
  user-set password, if I find something it's usually insecure,
  if I find a good solution it has no support for user-set passwords,
  meaning I'm stuck, any way to do it?</p>
  <p>Here's some pseudocode:</p>
  <pre class="lang-py prettyprint-override"><code>import encryption
  
  encryptor: encryption.Crypt = encryption.Crypt(&quot;my secret password&quot;)
  
  encryptor.encrypt(&quot;hello this is my very secret string&quot;)  # =&gt; 9oe gyu yp9q*(Y 28j
  encryptor.decrypt(&quot;9oe gyu yp9q*(Y 28j&quot;)  # =&gt; hello this is my very secret string
  </code></pre>
  <p>I don't care if it's an object, for all I care
  it can also be a function which accepts the password:</p>
  <pre class="lang-py prettyprint-override"><code>import encryption
  
  encryption.encrypt(&quot;hello this is my very secret string&quot;, &quot;my secret password&quot;)  # =&gt; 9oe gyu yp9q*(Y 28j
  encryption.decrypt(&quot;9oe gyu yp9q*(Y 28j&quot;, &quot;my secret password&quot;)  # =&gt; hello this is my very secret string
  </code></pre>
  <p>I don't mind the way it's encrypted or decrypted, I
  just want to have a way to do it :), I also don't
  care abt it's output, it can be binary, an object,
  a string, anything</p>