$decrypt » History » Version 9
Per Amundsen, 02/16/2023 09:26 PM
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ |
|---|---|---|---|
| 2 | |||
| 3 | *$decrypt(text, password)* |
||
| 4 | |||
| 5 | 8 | Per Amundsen | *Deprecated, consider using the "blowfish plugin":https://dev.adiirc.com/projects/adiirc/wiki/Blowfish. instead* |
| 6 | |||
| 7 | 7 | Per Amundsen | Decrypts a blowfish text using the "fish10":https://syndicode.org/fish_10/ format, encrypted with password. |
| 8 | 1 | Per Amundsen | |
| 9 | 6 | Per Amundsen | _ECB mode only._ |
| 10 | 4 | Per Amundsen | |
| 11 | 5 | Per Amundsen | _See also [[$encrypt]]._ |
| 12 | 4 | Per Amundsen | |
| 13 | 1 | Per Amundsen | *Parameters* |
| 14 | |||
| 15 | 9 | Per Amundsen | table(ktable). |
| 16 | |*Parameter*|*Description*| |
||
| 17 | | text | Text to decrypt. | |
||
| 18 | | password | Password to decrypt with. | |
||
| 19 | 1 | Per Amundsen | |
| 20 | *Example* |
||
| 21 | |||
| 22 | <pre> |
||
| 23 | 3 | Per Amundsen | ; Create a variable and encrypt text "Hello World" with password "test". |
| 24 | 1 | Per Amundsen | var %text $encrypt(Hello World, test) |
| 25 | |||
| 26 | 3 | Per Amundsen | ; Decrypt the text and print it. |
| 27 | 2 | Per Amundsen | echo -ag $decrypt(%text, test) |
| 28 | 1 | Per Amundsen | </pre> |