Project

General

Profile

$encrypt » History » Version 4

Per Amundsen, 10/28/2018 10:03 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$encrypt(text, password)*
4
5
Encrypts a blowfish text using a password.
6
7 4 Per Amundsen
_ECB mode only._
8 3 Per Amundsen
9
_See also [[$decrypt]]._
10
11 1 Per Amundsen
*Parameters*
12
13
text - Text to encrypt.
14
password - Password to encrypt with.
15
16
*Example*
17
18
<pre>
19 2 Per Amundsen
; Create a variable and encrypt text "Hello World" with password "test".
20 1 Per Amundsen
var %text $encrypt(Hello World, test)
21
22 2 Per Amundsen
; Decrypt the text and print it.
23 1 Per Amundsen
echo -ag $decrypt(%text, test)
24
</pre>