Sample Private Post

This is a sample post that demonstrates the encryption feature of the blog. Some content below is password protected.

Public Content

This content is visible to everyone. You can write normal blog posts with regular content here.

Code Example

Here’s a sample code block:

1
2
3
4
5
6
7
def hello_world():
    print("Hello, World!")
    return "Success!"

# Call the function
result = hello_world()
print(result)

Protected Content

The following content is password protected. You can use the default password geekrun123 or specify a custom password.

Example 1: Using Default Password

Protected Content

This content is password protected. Please enter the password to continue.

Example 2: Using Custom Password

The following content uses a custom password: secret123

Protected Content

This content is password protected. Please enter the password to continue.

More Public Content

You can continue with regular content after the encrypted section. This demonstrates how you can mix public and private content in the same post.

Benefits of This Approach

  1. Flexibility: Mix public and private content in the same post
  2. Security: Client-side encryption keeps sensitive data safe
  3. User Experience: Smooth password entry with visual feedback
  4. SEO Friendly: Public content is still indexed by search engines

This post demonstrates the encryption feature. In real usage, you would replace the sample password with a more secure one.