diff --git a/src/components/LoginWithNostr.svelte b/src/components/LoginWithNostr.svelte
index aacc61e..1cf91fa 100644
--- a/src/components/LoginWithNostr.svelte
+++ b/src/components/LoginWithNostr.svelte
@@ -38,7 +38,7 @@
}
function loginWithNsec() {
- if (password.length < 8) return alert('Password must be at least 8 characters long');
+ if (password.length < 32) return alert('Password must be at least 32 characters long');
let nsecBytes = decodeKey(nsec);
if (nsecBytes.type !== 'nsec') return alert('Invalid nsec');
let encrypted = encryptNsec(nsecBytes.data, password);
@@ -75,22 +75,97 @@
{#if isLoggingIn}
+
+
🚨 Critical Security Warning 🚨
+
Your nsec is the master key to your ENTIRE Nostr identity. If someone gets it:
+
+
+
They can read ALL your letters - past and future
+
They can post ANYTHING pretending to be you
+
They can take over your account PERMANENTLY
+
There is NO WAY to undo this - not even we can help you
+
Your account would be LOST FOREVER
+
+
+
Only enter your nsec on devices you completely trust!
+
If you're not 100% sure about this, STOP and use a signing extension instead (or use
+ bunkers, coming soon).
+
+
{#if ncryptsec || nsec}
- Enter your password:
- If this is a new account make sure to remember the password in order to login later, if this is an existing account,
- put in the same password you used to create the account.
-
-
- {#if ncryptsec}
-
- {:else}
-
- {/if}
+
Password Required
+
+ First time here? Create a strong password that is AT LEAST 32 characters long.
+ A good approach is to use 4-5 random words with numbers and symbols between them.
+ Example: correct-horse9battery!staple$running
+ Your password is used to encrypt your nsec. Write it down somewhere safe, it cannot be recovered.
+
+
+
+ Length: {password?.length || 0}/32 characters
+
+
+
+
+
{:else}
- If you already have a nostr account, please enter your nsec below. If you don't have an nsec please use a nostr
- client to create one, such as Primal.
-
-
+
+ Already have a Nostr account? Enter your nsec below.
+ Need an account? Create one using any of these popular clients:
+