• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

HELP Account Manager in SHA1

weverton

New Member
Joined
May 30, 2009
Messages
104
Reaction score
2
HELP
convert sha1 passwords for plain take much
repp*

HTML:
UPDATE `accounts` SET `password` = plaintext(`password`);

Erro

consulta SQL:

UPDATE `accounts` SET `password` = plaintext(
`password`
)

Mensagens do MySQL : Documentação
#1305 - FUNCTION sei.plaintext does not exist :mad:
 
I am afraid you cannot convert SHA1 back to plaintext, at least not very easily. ;-)
 
You could do something like;
SQL:
UPDATE `accounts` SET `password` = CONCAT( `name`, "-", SUBSTR( LOWER( REVERSE( `name` ) ), 1, 3 ) );

Which would set the password to their account name followed by a hyphen and the last three characters (in a reverse order) of their account name in lower case (e.g. if your account name would be Chris, the new password would be Chris-sir, weverton would become weverton-not and so on).

Then all you would have to do is change your server encryption back to plain text, make sure the AAC that you're using (if any at all) also works with plain passwords and publish a news-item with the information I described in the paragraph above.

EDIT: You could (should!) also recommend people to change their passwords as quickly as possible, or create a script that asks them to change them the first time they login.
 
Znote wrote a link somewhere to convert from from sha1 to plain and vise versa, use it and change the acc manager's password back to 1/1
 
Back
Top