From 1d5a28d041fa2eb1ada9e9f96fcebb58efd7c76c Mon Sep 17 00:00:00 2001 From: michaeloffner Date: Fri, 7 Jun 2024 00:01:15 +0200 Subject: [PATCH] improve md --- docs/recipes/encryption_decryption.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/recipes/encryption_decryption.md b/docs/recipes/encryption_decryption.md index 76dc7c6e7..3779d4c9c 100644 --- a/docs/recipes/encryption_decryption.md +++ b/docs/recipes/encryption_decryption.md @@ -22,7 +22,7 @@ ] } --> -## Encryption/Decryption ## +# Encryption/Decryption This document explains about Encryption/Decryption with public and private keys with simple examples. @@ -31,7 +31,7 @@ Encryption/Decryption is a new functionality in Lucee 5.3. We have a new way to * Private key to encrypt * Public key to decrypt -### Example 1: ### +## Example 1: ```luceescript //index.cfm @@ -48,7 +48,7 @@ dump(key) This function generates RSA keys. Execute the example code above in the browser and a struct is returned containing the two keys: a private key and a public key. So, we can create these keys, and store them somewhere for later use. -### Example 2: ### +## Example 2: ```luceescript key=generateRSAKeys(); @@ -59,7 +59,7 @@ dump(enc); We now create RSA keys using the [[function-generatersakeys]] function, and then use the key to encrypt using the [[function-encrypt]] function. The encrypt() function has some arguments. It has `key.private` which defines the key as the private key, and `rsa` indicates use of the RSA encryption algorithm. Then run the dump in the browser and we see the encrypted string for your input string. -### Example 3: ### +## Example 3: ```luceescript key=generateRSAKeys(); @@ -71,7 +71,7 @@ dump(dec); This is a full detailed example of encrypt/decrypt functions. We create a key and we encrypt with the private key. Then we [[function-decrypt]] with the public key. Then run the dump in the browser and we see the original string returned as expected. -### Footnotes ### +## Footnotes Here you can see these details in the video also: