Skip to content

Commit 69652a6

Browse files
committed
Complete README
1 parent c23e953 commit 69652a6

File tree

1 file changed

+50
-9
lines changed

1 file changed

+50
-9
lines changed

README.md

Lines changed: 50 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,66 @@
11
# LiveCode encryption library
22

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.
77

88
### Requirements
99

10-
LiveCode version 9 or higher
10+
LiveCode version 9 or higher
1111

1212
### How to use this library:
1313

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"
1556

1657
### License
1758

18-
For the license terms see the LICENSE file.
59+
For the license terms see the LICENSE file.
1960

2061
### Meta
2162

2263
Version: 1.0.0
23-
Web Site: <https://revigniter.com/>
64+
Web Site: <https://revigniter.com/>
2465

25-
Author: Ralf Bitter
66+
Author: Ralf Bitter

0 commit comments

Comments
 (0)