SHARE
TWEET

Untitled

a guest Sep 19th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     let salt = crypto.SHA512(this.password);
  2.  
  3.     let encrypted = crypto.PBKDF2(this.password, salt, 4096, 30, (err: any, derivedKey: any) => {
  4.       if(err) throw err;
  5.       console.log(derivedKey.toString('hex'));
  6.       return axios.post('localhost:3000', {
  7.         user: {
  8.           username: this.username,
  9.           password: encrypted,
  10.         },
  11.       })
  12.     })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top