Skip to content

hculea/zxcvbn-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Background

This repository exists in order to provide easy functional testing for shssoichiro/zxcvbn-rs#83

Prerequisites

Testing environment

This project is made of two components:

  • core, a Rust WASM library that calls the zxcvbn function of the zxcvbn crate. It exposes a function strength_for_password consuming a string, and returns the guesses_log10 attribute of its entropy.
  • client, a Go app consuming the WASM-compiled core. It injects the unix_time_milliseconds_imported in the environment, which is called within the zxcvbn library, imported in core's Cargo.toml with the custom_wasm_env feature on.

Testing steps

From the root of the repository, run

make run

This should output the entropy score of the PASSWORD_TO_TEST var defined in client/main.go.

Not injecting the function, or importing the crate without the custom_wasm_env will result in errors.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published