Skip to content

Commit

Permalink
refactor: remove hash for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ni-jessica committed Nov 11, 2023
1 parent acbfa5f commit eea84f1
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions frontend/app/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ import {
// Make API call to server to check if password was found in breached dataset
export const checkSecurity = async (password: string) => {
try {
// hash the password
const passwordHash = crypto_pwhash_str(
password,
crypto_pwhash_OPSLIMIT_INTERACTIVE,
crypto_pwhash_MEMLIMIT_INTERACTIVE
);
if (!crypto_pwhash_str_verify(passwordHash, password)) {
console.log("unable to hash password");
return { status: "error" };
}

// TODO: encrypt

const response = await fetch(
"http://localhost:18080/intersection",
{
Expand Down

0 comments on commit eea84f1

Please sign in to comment.