egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Argon2 converter and reader

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
ComputerTech
Master


Joined: 22 Feb 2020
Posts: 393

PostPosted: Mon Aug 23, 2021 8:42 pm    Post subject: Argon2 converter and reader Reply with quote

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 Very Happy
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Tue Aug 24, 2021 4:27 am    Post subject: Reply with quote

Argon2 is not reversible.
And I think you need a really high math level (maybe you have) to create the argon2 lib in tcl.
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
ComputerTech
Master


Joined: 22 Feb 2020
Posts: 393

PostPosted: Tue Aug 24, 2021 9:47 am    Post subject: Reply with quote

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 Razz i'd rather not have to rely on the Eggdrop Blowfish encryption module for this either Smile
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Wed Aug 25, 2021 12:28 pm    Post subject: Reply with quote

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 ?
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
ComputerTech
Master


Joined: 22 Feb 2020
Posts: 393

PostPosted: Sat Aug 28, 2021 1:00 pm    Post subject: Reply with quote

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

$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 Smile

Thanks in advanced btw Wink
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Sat Aug 28, 2021 7:12 pm    Post subject: Reply with quote

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

Test:
Code:
% package require blowfish
1.0.4
% blowfish::blowfish -hex -mode cbc -key mykey "hello everybody"
4400e7e1218ce71261eb191ee71d437e

_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
ComputerTech
Master


Joined: 22 Feb 2020
Posts: 393

PostPosted: Sat Aug 28, 2021 7:14 pm    Post subject: Reply with quote

Oh i see! thank you CrazyCat, i'll try play with that Very Happy
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber