You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A code which uses argon2 fails to execute correctly
To Reproduce
Steps to reproduce the behavior:
Go to 'Buildship'
Click on 'New node'
Use the following code:
import argon2 from 'argon2'
async function hashPassword(password) {
try {
// Hash password
const hash = await argon2.hash(password);
// Store the hash in your database or wherever you manage passwords
console.log('Hash:', hash);
} catch (err) {
console.error('Error hashing password:', err);
}
}
async function verifyPassword(hash, password) {
try {
// Verify password
const isValid = await argon2.verify(hash, password);
if (isValid) {
console.log('Password is valid');
} else {
console.log('Password is invalid');
}
} catch (err) {
console.error('Error verifying password:', err);
}
}
// Example usage
const passwordToHash = 'securePassword123';
hashPassword(passwordToHash);
// In a real-world scenario, you would store the hash and then later verify the password
// For demonstration purposes, we'll immediately verify the password after hashing
verifyPassword('$argon2id$v=19$m=65536,t=2,p=1$9S6axxfv...exampleHash', passwordToHash);
See error
Expected behavior
Expected was for the code to return the hashed password
Screenshots
If applicable, add screenshots to help explain your problem.
Rowy Run version
If applicable, share the Rowy Run version from your project settings.
Desktop (please complete the following information):
Windows, Chrome latest version
Smartphone (please complete the following information):
Through web
Additional context
None
The text was updated successfully, but these errors were encountered:
Describe the bug
A code which uses argon2 fails to execute correctly
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected was for the code to return the hashed password
Screenshots
If applicable, add screenshots to help explain your problem.
Rowy Run version
If applicable, share the Rowy Run version from your project settings.
Desktop (please complete the following information):
Windows, Chrome latest version
Smartphone (please complete the following information):
Through web
Additional context
None
The text was updated successfully, but these errors were encountered: