(→Decoding) |
(→Decoding) |
||
Line 15: | Line 15: | ||
| m | Target should be decoded using [[Mime]] | | m | Target should be decoded using [[Mime]] | ||
| u | Target should be decoded using [[Uuencode]] (this is default decode type) | | u | Target should be decoded using [[Uuencode]] (this is default decode type) | ||
− | | b | Target is a {{mIRC|binary variables|&binvars}}, this output the result to the &binvar | + | | b | Target is a {{mIRC|binary variables|&binvars}}, this output the result to the &binvar and $decode returns the total number of characters written to the binvar |
| t | Target is text (this is default target type) | | t | Target is text (this is default target type) | ||
| N | Reference index for the Nth chunk in the output 60-character encoded chunk | | N | Reference index for the Nth chunk in the output 60-character encoded chunk |
Revision as of 16:17, 29 January 2018
The $decode identifier allows you to decode literal text, or text in %vars or &binvars. The $decode identifier uses either Uuencode or MIME to decode.
Synopsis
; decoding $decode(text/%var/&binvar, mubt, N) ; encryption $decode(text/%var/&binvar, celirznp, key[, salt/iv])
Parameters
Decoding
%var/&binvar The target to be decoded
m Target should be decoded using Mime
u Target should be decoded using Uuencode (this is default decode type)
b Target is a &binvars, this output the result to the &binvar and $decode returns the total number of characters written to the binvar
t Target is text (this is default target type)
N Reference index for the Nth chunk in the output 60-character encoded chunk
Encryption
c CBC encryption mode (either c or e)
e ECB encryption mode (either c or e)
l Literal key, a 56-byte key
s salt
i initialization vector (IV)
r random IV
z zero padding
n ones and zeros
p spaces
Example
Echo to the active screen the following decoded text, using the Mime type:
//echo -a $decode(SGVsbG8gV2lraUNoaXAgdXNlciE=,m)
Compatibility
Added: mIRC v5.8
Added on: 05 Sep 2000
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.