|
1 | 1 | # LiveCode encryption library |
2 | 2 |
|
3 | | -This encryption library is borrowed from revIgniter's encryption library |
4 | | -and includes all features as described in the revIgniter User Guide |
5 | | -(see chapter [Encryption Library](https://revigniter.com/userGuide/libraries/encryption.html)). |
6 | | -It is meant to be used with desktop and mobile apps. |
| 3 | +This library is borrowed from revIgniter's encryption library |
| 4 | +and includes all features as described in the revIgniter User Guide |
| 5 | +(please see chapter [Encryption Library](https://revigniter.com/userGuide/libraries/encryption.html)). It is meant to be used with |
| 6 | +desktop and mobile apps. |
7 | 7 |
|
8 | 8 | ### Requirements |
9 | 9 |
|
10 | | -LiveCode version 9 or higher |
| 10 | +LiveCode version 9 or higher |
11 | 11 |
|
12 | 12 | ### How to use this library: |
13 | 13 |
|
14 | | -Place the library in the message path, then |
| 14 | +#### Starting |
| 15 | +Place the library in the message path like: |
| 16 | + |
| 17 | + start using stack "path/to/encryptLib.livecodescript" |
| 18 | + |
| 19 | +#### Setting your key |
| 20 | +**Note:** Setting your key is different to the server version of this library, use: |
| 21 | + |
| 22 | + rigSetEncryptionKey <key> |
| 23 | +Example: |
| 24 | + |
| 25 | + rigSetEncryptionKey "mySuperSecretKey" |
| 26 | + |
| 27 | +#### Encryption and decryption |
| 28 | + |
| 29 | +please refer to the chapter [Encryption Library](https://revigniter.com/userGuide/libraries/encryption.html) in the |
| 30 | +revIgniter User Guide. |
| 31 | + |
| 32 | +#### Setting a cipher and a hash type |
| 33 | + |
| 34 | +please refer to the chapter [Encryption Library](https://revigniter.com/userGuide/libraries/encryption.html) in the |
| 35 | +revIgniter User Guide. |
| 36 | + |
| 37 | +##### Default values |
| 38 | + |
| 39 | +hash type: "SHA-1" |
| 40 | +cipher: "bf" |
| 41 | +cipher key length: 128 |
| 42 | + |
| 43 | +#### Getter |
| 44 | +In contrast to the server version this library includes a getter: |
| 45 | + |
| 46 | + rigEncryptGet(pVariableName) |
| 47 | + |
| 48 | +This function returns the values of an array variable |
| 49 | +provided that a valid key name is used as parameter. |
| 50 | +Array key names (used as parameter) are: |
| 51 | + |
| 52 | +- "encryptionKey" |
| 53 | +- "_hashType" |
| 54 | +- "cipher" |
| 55 | +- "cipherKeyLength" |
15 | 56 |
|
16 | 57 | ### License |
17 | 58 |
|
18 | | -For the license terms see the LICENSE file. |
| 59 | +For the license terms see the LICENSE file. |
19 | 60 |
|
20 | 61 | ### Meta |
21 | 62 |
|
22 | 63 | Version: 1.0.0 |
23 | | -Web Site: <https://revigniter.com/> |
| 64 | +Web Site: <https://revigniter.com/> |
24 | 65 |
|
25 | | -Author: Ralf Bitter |
| 66 | +Author: Ralf Bitter |
0 commit comments