Project

General

Profile

$decrypt » History » Version 7

Per Amundsen, 11/01/2018 12:18 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$decrypt(text, password)*
4
5 7 Per Amundsen
Decrypts a blowfish text using the "fish10":https://syndicode.org/fish_10/ format, encrypted with password.
6 1 Per Amundsen
7 6 Per Amundsen
_ECB mode only._
8 4 Per Amundsen
9 5 Per Amundsen
_See also [[$encrypt]]._
10 4 Per Amundsen
11 1 Per Amundsen
*Parameters*
12
13
text - Text to decrypt.
14
password - Password to decrypt with.
15
16
*Example*
17
18
<pre>
19 3 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 3 Per Amundsen
; Decrypt the text and print it.
23 2 Per Amundsen
echo -ag $decrypt(%text, test)
24 1 Per Amundsen
</pre>