$encrypt » History » Version 6
Per Amundsen, 12/03/2018 03:46 AM
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ |
|---|---|---|---|
| 2 | |||
| 3 | *$encrypt(text, password)* |
||
| 4 | |||
| 5 | 6 | Per Amundsen | *Is not secure and is disabled in AdiIRC 3.3+* |
| 6 | |||
| 7 | 5 | Per Amundsen | Encrypts a blowfish text using the "fish10":https://syndicode.org/fish_10/ format using a password. |
| 8 | 1 | Per Amundsen | |
| 9 | 4 | Per Amundsen | _ECB mode only._ |
| 10 | 3 | Per Amundsen | |
| 11 | _See also [[$decrypt]]._ |
||
| 12 | |||
| 13 | 1 | Per Amundsen | *Parameters* |
| 14 | |||
| 15 | text - Text to encrypt. |
||
| 16 | password - Password to encrypt with. |
||
| 17 | |||
| 18 | *Example* |
||
| 19 | |||
| 20 | <pre> |
||
| 21 | 2 | Per Amundsen | ; Create a variable and encrypt text "Hello World" with password "test". |
| 22 | 1 | Per Amundsen | var %text $encrypt(Hello World, test) |
| 23 | |||
| 24 | 2 | Per Amundsen | ; Decrypt the text and print it. |
| 25 | 1 | Per Amundsen | echo -ag $decrypt(%text, test) |
| 26 | </pre> |