code: def encrypt_password(self, raw_password):
          
          PraetorianError.require_condition(
              self.pwd_ctx is not None,
              "Praetorian must be initialized before this method is available",
          )
          return self.pwd_ctx.encrypt(raw_password, scheme=self.hash_scheme)
docs: Encrypts a plaintext password using the stored passlib password context