mirror of https://github.com/progval/irctest.git
forgot to commit this file
This commit is contained in:
parent
5f566e7164
commit
fddc395d43
|
@ -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}'
|
Loading…
Reference in New Issue