mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
String, Hashes: remove links describing hashing methods
These are either dead or don't accurately describe the state of these methods today. For example, the SHA1 site still describes SHA-1 and MD5 as "trusted" despite widely reported collision attacks already being possible[1][2][3]. [1]: https://www.computerworld.com/article/3173616/security/the-sha1-hash-function-is-now-completely-unsafe.html [2]: https://arstechnica.com/information-technology/2017/02/at-deaths-door-for-years-widely-used-sha1-function-is-now-dead/ [3]: https://techcrunch.com/2017/02/23/security-researchers-announce-first-practical-sha-1-collision-attack/
This commit is contained in:
parent
b84ce3e43f
commit
41830a46aa
@ -47,9 +47,7 @@ class Hashes(callbacks.Plugin):
|
||||
def md5(self, irc, msg, args, text):
|
||||
"""<text>
|
||||
|
||||
Returns the md5 hash of a given string. Read
|
||||
http://www.rsasecurity.com/rsalabs/faq/3-6-6.html for more information
|
||||
about md5.
|
||||
Returns the md5 hash of a given string.
|
||||
"""
|
||||
irc.reply(hashlib.md5(text.encode('utf8')).hexdigest())
|
||||
md5 = wrap(md5, ['text'])
|
||||
@ -58,9 +56,7 @@ class Hashes(callbacks.Plugin):
|
||||
def sha(self, irc, msg, args, text):
|
||||
"""<text>
|
||||
|
||||
Returns the SHA hash of a given string. Read
|
||||
http://www.secure-hash-algorithm-md5-sha-1.co.uk/ for more information
|
||||
about SHA.
|
||||
Returns the SHA1 hash of a given string.
|
||||
"""
|
||||
irc.reply(hashlib.sha1(text.encode('utf8')).hexdigest())
|
||||
sha = wrap(sha, ['text'])
|
||||
|
@ -219,9 +219,7 @@ class String(callbacks.Plugin):
|
||||
def xor(self, irc, msg, args, password, text):
|
||||
"""<password> <text>
|
||||
|
||||
Returns <text> XOR-encrypted with <password>. See
|
||||
http://www.yoe.org/developer/xor.html for information about XOR
|
||||
encryption.
|
||||
Returns <text> XOR-encrypted with <password>.
|
||||
"""
|
||||
chars = utils.iter.cycle(password)
|
||||
ret = [chr(ord(c) ^ ord(next(chars))) for c in text]
|
||||
@ -232,9 +230,7 @@ class String(callbacks.Plugin):
|
||||
def md5(self, irc, msg, args, text):
|
||||
"""<text>
|
||||
|
||||
Returns the md5 hash of a given string. Read
|
||||
http://www.rsasecurity.com/rsalabs/faq/3-6-6.html for more information
|
||||
about md5.
|
||||
Returns the md5 hash of a given string.
|
||||
"""
|
||||
irc.reply(utils.crypt.md5(text.encode('utf8')).hexdigest())
|
||||
md5 = wrap(md5, ['text'])
|
||||
@ -243,9 +239,7 @@ class String(callbacks.Plugin):
|
||||
def sha(self, irc, msg, args, text):
|
||||
"""<text>
|
||||
|
||||
Returns the SHA hash of a given string. Read
|
||||
http://www.secure-hash-algorithm-md5-sha-1.co.uk/ for more information
|
||||
about SHA.
|
||||
Returns the SHA1 hash of a given string.
|
||||
"""
|
||||
irc.reply(utils.crypt.sha(text.encode('utf8')).hexdigest())
|
||||
sha = wrap(sha, ['text'])
|
||||
|
Loading…
Reference in New Issue
Block a user