Project

General

Profile

$sslhash » History » Version 4

Per Amundsen, 02/23/2023 07:32 PM

1 1 Per Amundsen
_Added in 4.3_
2
3
*$sslhash(md5|sha1|sha256|sha512|ecdsa, p|s)*
4 3 Per Amundsen
*$sslhash(&binvar, p|s)*
5 1 Per Amundsen
6
Returns the "SSL/TLS":https://en.wikipedia.org/wiki/Public_key_certificate client or server certificate hash.
7
8
*Parameters*
9
10 4 Per Amundsen
table(ktable).
11
|*Parameter*|*Description*|
12
| md5<notextile>|</notextile>sha1<notextile>|</notextile>sha256<notextile>|</notextile>sha512<notextile>|</notextile>ecdsa | The hash method to return. *(ecdsa is TODO)* |
13
| &binvar | Puts the raw certificate into the &binvar. *(AdiIRC only)* |
14
| p<notextile>|</notextile>s | p = the private/client certificate, s = the remote server certificate. |
15 1 Per Amundsen
16
*Properties*
17
18 4 Per Amundsen
table(ktable).
19
|*Property*|*Description*|
20
| .babble | Returns "bubble babble":http://bohwaz.net/archives/web/Bubble_Babble.html encoded string. |
21
| .colons | Returns hash digest with pairs of hex digits separated by colons. |
22 1 Per Amundsen
23
*Example*
24
25
<pre>
26
//echo -ag The shas256 hash for the current client certificate is $sslhash(sha256, p)
27
28
//echo -ag The shas256 hash for the current remote certificate is $sslhash(sha256, s)
29
</pre>