Skip to content

Updated the examples for the encrypt() function. #1516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/03.reference/01.functions/encrypt/_arguments/key.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Key or seed used to encrypt the string.

- For the CFMX_COMPAT algorithm, any combination of any number of characters; used as a seed used to generate a 32-bit encryption key.
- For all other algorithms, a key in the format used by the algorithm. For these algorithms, use the GenerateSecretKey function to generate the key.
- For all other algorithms, a key in the format used by the algorithm. For these algorithms, use the [GenerateSecretKey](https://docs.lucee.org/reference/functions/generatesecretkey.html) function to generate the key.
10 changes: 9 additions & 1 deletion docs/03.reference/01.functions/encrypt/_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@
key=generateSecretKey("AES");
testEncrypt = encrypt("safeourtree",key,"AES","base64");
writeDump(testEncrypt);
```
```

### Simple Example(6.2.2.58-SNAPSHOT)

```luceescript+trycf
// Supported from Lucee 6.2.2.58-SNAPSHOT
encryptData = encrypt("lucee","abc","AES","Hex",3);
writeDump(encryptData);
```
1 change: 1 addition & 0 deletions docs/recipes/date-time-formatting.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ result = dateTimeFormat(myDate, "yyyy-MM-dd HH:mm:ss Z", "Europe/Helsinki");
### Current Behavior

Modern Lucee versions automatically detect and handle synthetic date issues:

- **`createTime()` objects** with synthetic dates before 1899-12-31 use standard timezone offsets (the fix)
- **Actual historical dates** (like 1905-12-24) continue to use historically accurate timezone rules (no fix needed)
- **Modern dates** continue to use full timezone rules including DST
Expand Down