How to use the js-sha256/src/sha256.sha256.create function in js-sha256

To help you get started, we’ve selected a few js-sha256 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github taktik / icure-backend / web / icure-ht / app / src / elements / ht-app / ht-app-first-login-dialog.html View on Github external

        if(!this.user.passwordHash) {

            if(this.password !== "" && this.password === this.password_verif){

                this.set('passwordError', '');
                var hash = sha256.create()
                const passwordHash = hash.hex()
                this.user.passwordHash = passwordHash

            }else if(this.password !== this.password_verif){

                this.set('passwordError', 'Les mots de passe ne correspondent pas')

            }else if(this.password === ""){

                this.set('passwordError', 'Mot de passe invalide')