I want to make a password

Proximity

IDK?
Feb 13, 2014
673
56
so this is in the core

Code:
        public function encrypt( $string, $encryption_key )
        {

            $password = hash( 'sha256', $string );
            $length   = strlen( $password ) / 2;

            if ( strlen( $password ) % 2 ) {
                $length++;
            }

            $passSplit = str_split( $password, $length );
            $saltSplit = str_split( $encryption_key, 3 );

            $string  = $saltSplit[0] . $passSplit[0] . $saltSplit[1] . $passSplit[1] . $saltSplit[2];
            $encrypt = hash( 'whirlpool', $string );

            return $encrypt;
        }

        public function encryption_key()
        {

            $numbers = array( 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60 );

            return substr( sha1( rand( $numbers[0], $numbers[count( $numbers ) - 1] ) ), 0, $numbers[rand( 0, count( $numbers ) - 1 )] );
        }

And this is the data structure

asRhZN5gTSTz8qqiZw53SXrXrpF7J-sjOgL7SalyOKA
 

BIOS

ಠ‿ಠ
Apr 25, 2012
906
247
so this is in the core

Code:
        public function encrypt( $string, $encryption_key )
        {

            $password = hash( 'sha256', $string );
            $length   = strlen( $password ) / 2;

            if ( strlen( $password ) % 2 ) {
                $length++;
            }

            $passSplit = str_split( $password, $length );
            $saltSplit = str_split( $encryption_key, 3 );

            $string  = $saltSplit[0] . $passSplit[0] . $saltSplit[1] . $passSplit[1] . $saltSplit[2];
            $encrypt = hash( 'whirlpool', $string );

            return $encrypt;
        }

        public function encryption_key()
        {

            $numbers = array( 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60 );

            return substr( sha1( rand( $numbers[0], $numbers[count( $numbers ) - 1] ) ), 0, $numbers[rand( 0, count( $numbers ) - 1 )] );
        }

And this is the data structure

asRhZN5gTSTz8qqiZw53SXrXrpF7J-sjOgL7SalyOKA
I think that you are trying to store a specific generated "salt" for each user password within the database?
 

Weasel

👄 I'd intercept me
Nov 25, 2011
4,135
2,461
So, why not take one of the first 3 accounts and create a user from inside the panel?

EDIT: Also, radiPanel has a lot of exploits. It's not safe to use, so watch out.
 

Weasel

👄 I'd intercept me
Nov 25, 2011
4,135
2,461
Could you zip the program and upload it, so I can check the source and try to generate a user for you.
 
Add this in the encryption column: 2e01e17467891f7c933dbaa00e1459
Add this in the password column: c6b3ab493c3b77fda15a60a1c752bc99982444fb6446ba48e41933e68ed3bd8700137af6d21559a670aaa9f5337a1dadfe85b4d6f5f8e8c2e41bcddf7a885983

Try to login with the password WCKDisfag
 

Users who are viewing this thread

Top