mirror of
https://github.com/progval/irctest.git
synced 2025-04-04 22:39:50 +00:00
forgot to commit this file
This commit is contained in:
6
irctest/irc_utils/sasl.py
Normal file
6
irctest/irc_utils/sasl.py
Normal file
@ -0,0 +1,6 @@
|
||||
import base64
|
||||
|
||||
def sasl_plain_blob(username, passphrase):
|
||||
blob = base64.b64encode(b'\x00'.join((username.encode('utf-8'), username.encode('utf-8'), passphrase.encode('utf-8'))))
|
||||
blobstr = blob.decode('ascii')
|
||||
return f'AUTHENTICATE {blobstr}'
|
Reference in New Issue
Block a user