Giter VIP home page Giter VIP logo

Comments (5)

danpros avatar danpros commented on May 25, 2024

and in the ini file the password is stored in md5 for example.

@BlackCodec you should realize if the password write manually so it would be very hard to generate md5 password without using any tools 😃

I would be very pleased if you could join to enhance the HTMLy security.

from htmly.

BlackCodec avatar BlackCodec commented on May 25, 2024

I found a solution for everybody that want an encryption and who dont want them.
I added encryption in the ini file, encryption accept null value and clear for no encryption, else everyone can explain its encryption in the standard, the function i have used is php hash so the algoritms are the standard included with the function documentation.

I modified the admin.php at line 19 adding this 2 line:
$user_enc = user('encryption', $user);
$password = (strlen($user_enc) > 0 && $user_enc !== 'clear')?hash($user_enc,$pass):$pass;

then change 2 row after the:
if($pass === $user_pass) {
with:
if($password === $user_pass) {

and it work with encryption or without.
If encryption params is not inserted or specified its consider clear text like the original so there is no problem for who have this alredy installed.

from htmly.

danpros avatar danpros commented on May 25, 2024

Can you provide me a patch or pull request?

from htmly.

BlackCodec avatar BlackCodec commented on May 25, 2024

@danpros
Sorry i'm new on github and dont know very well its function, i have done a pull request (#51).
In the pull there are two implementation:

  1. Security like described in precedent post
  2. Support for drafts.

from htmly.

BlackCodec avatar BlackCodec commented on May 25, 2024

Submitted patch and added to master.

from htmly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.