const argon2 = require('argon2'); const szoveg = 'titok'; const hash = '$argon2id$v=19$m=65536,t=3,p=4$qtzFpXHWk/X/MJziOST2RQ$orDbO+QZ+1bT5lsZcBwUiTFHl4fsqvTLeJxcrKYIIr4'; argon2.verify(hash, szoveg).then(isVerified => { console.log(isVerified); });