From WikiChip
Difference between revisions of "mirc/identifiers/$decode"
< mirc‎ | identifiers

m
m (bot: correcting title)
Line 1: Line 1:
The '''$decode''' identifier allows you to decode literal text, or text in {{mIRC|Variables|%vars}} or {{mIRC|binary variables|&binvars}}. The '''$decode''' identifier uses either [[Uuencode]] or [[Base64|MIME]] to decode.
+
{{mirc title|$decode Identifier}}The '''$decode''' identifier allows you to decode literal text, or text in {{mIRC|Variables|%vars}} or {{mIRC|binary variables|&binvars}}. The '''$decode''' identifier uses either [[Uuencode]] or [[Base64|MIME]] to decode.
  
 
== Synopsis ==
 
== Synopsis ==

Revision as of 08:20, 4 January 2015

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

; encoding
$decode(text/%var/&binvar, mubt, N)

; encryption
$decode(text/%var/&binvar, celirznp, key[, salt/iv])

Parameters

Encoding

 %var/&binvar The target to be encoded
m Target should be encoded using Mime
u Target should be encoded using Uuencode (this is default encode type)
b Target is a &binvars
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.


See Also

[Expand]
v · d · e mIRC identifier list