This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Argon2 converter and reader

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
User avatar
ComputerTech
Master
Posts: 399
Joined: Sat Feb 22, 2020 10:29 am
Contact:

Argon2 converter and reader

Post by ComputerTech »

Hiya folks, so i'm trying to develop a little bit of a Tcl pure thing more than 100% Eggdrop, but i'm thinking of a script which will convert a piece of text into Argon2 format and then paste into a txt file and also read from the text file to undo the Argon2 format back into normal text, thanks in advanced lads and lasses :D
ComputerTech
User avatar
CrazyCat
Revered One
Posts: 1215
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

Argon2 is not reversible.
And I think you need a really high math level (maybe you have) to create the argon2 lib in tcl.
User avatar
ComputerTech
Master
Posts: 399
Joined: Sat Feb 22, 2020 10:29 am
Contact:

Post by ComputerTech »

Ah i see, hm, what encryption could i use on Tcl then? i was trying to build a nick register for eggdrop similar to Anope services :P i'd rather not have to rely on the Eggdrop Blowfish encryption module for this either :)
ComputerTech
User avatar
CrazyCat
Revered One
Posts: 1215
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

What do you mean with "nick register for eggdrop" ?
Explain exactly what you want to do.

Is it a two-pass registration for the userlist ? with a confirm password before the user is activated ?
User avatar
ComputerTech
Master
Posts: 399
Joined: Sat Feb 22, 2020 10:29 am
Contact:

Post by ComputerTech »

Basically like if i use https://www.mkpasswd.net to make the password "foo" using hash-type crypt-blowfish, it makes.

Code: Select all

$2y$12$h1Xgzv0uI8YD8kuJmi50YO6nAWHgti4nPp.r1W1criPDffhnNOgHW
Is it possible to use this in Tcl? i don't want to rely on Eggdrop to do this though, i'd rather use pure Tcl if possible :)

Thanks in advanced btw :wink:
ComputerTech
User avatar
CrazyCat
Revered One
Posts: 1215
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

blowfish is not rely to eggdrop, it exists as package in tcllib.
Documentation: https://core.tcl-lang.org/tcllib/doc/tr ... lowfish.md

Test:

Code: Select all

% package require blowfish
1.0.4
% blowfish::blowfish -hex -mode cbc -key mykey "hello everybody"
4400e7e1218ce71261eb191ee71d437e
User avatar
ComputerTech
Master
Posts: 399
Joined: Sat Feb 22, 2020 10:29 am
Contact:

Post by ComputerTech »

Oh i see! thank you CrazyCat, i'll try play with that :D
ComputerTech
Post Reply