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

m
Line 1: Line 1:
 
{{mirc title|$encode Identifier}}The '''$encode''' identifier allows you to encode literal text, or text in {{mIRC|Variables|%vars}} or {{mIRC|binary variables|&binvars}}. The '''$encode''' identifier uses either [[Uuencode]] or [[Base64|MIME]] to encode. Additionally $encode is capable of utilizing [[Blowfish]] for encryption.
 
{{mirc title|$encode Identifier}}The '''$encode''' identifier allows you to encode literal text, or text in {{mIRC|Variables|%vars}} or {{mIRC|binary variables|&binvars}}. The '''$encode''' identifier uses either [[Uuencode]] or [[Base64|MIME]] to encode. Additionally $encode is capable of utilizing [[Blowfish]] for encryption.
 +
  
 
== Synopsis ==
 
== Synopsis ==
Line 43: Line 44:
 
{{mIRC identifier list}}
 
{{mIRC identifier list}}
  
[[Category:MIRC identifiers]]
+
[[Category:mIRC identifiers|encode]]

Revision as of 15:03, 20 September 2017

The $encode identifier allows you to encode literal text, or text in %vars or &binvars. The $encode identifier uses either Uuencode or MIME to encode. Additionally $encode is capable of utilizing Blowfish for encryption.


Synopsis

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

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

Parameters

Encoding

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

//echo -a $encode(Hello there! This will be encoded using Mime.,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