diff --git a/frontend/server.js b/frontend/server.js index 45dcd8e..35fb9ca 100644 --- a/frontend/server.js +++ b/frontend/server.js @@ -1,7 +1,16 @@ const express = require("express"); const path = require("path"); -const app = express(); const PORT = process.env.PORT || 3000; +const RateLimit = require("express-rate-limit"); + +const app = express(); + +const limiter = new RateLimit({ + windowMs: 1 * 60 * 1000, + max: 50, +}); + +app.use(limiter); app.use(express.static(path.join(__dirname, "dist"))); diff --git a/frontend/src/components/HelloWorld.vue b/frontend/src/components/HelloWorld.vue index ec42991..fe9990e 100644 --- a/frontend/src/components/HelloWorld.vue +++ b/frontend/src/components/HelloWorld.vue @@ -11,6 +11,16 @@ + + +
+

This tool is designed to enhance your security by checking if your password + has been exposed in any known breaches. By analyzing hashed versions of passwords against common + dictionaries and wordlists, it helps determine if your password is still secure.

+
+
+
+

Enter a password

@@ -62,29 +72,79 @@ async function hashPassword() { }); } - -