dq1-password

Crates.iodq1-password
lib.rsdq1-password
version0.1.0
sourcesrc
created_at2021-09-21 14:57:04.560199
updated_at2021-09-21 14:57:04.560199
descriptionNES Dragon Quest (J) password library
homepagehttps://github.com/taotao54321/dq1-password
repositoryhttps://github.com/taotao54321/dq1-password
max_upload_size
id454452
size100,047
(taotao54321)

documentation

https://docs.rs/dq1-password

README

NES Dragon Quest (J) password library

CLI usage

# decode password to game state
cargo run --release --example decode -- 'まるかつはやつはりせかいいちだつたのだよ'

# encode game state to password
cargo run --release --example encode -- examples/sample.json

# generate passwords by pattern (up to 10)
cargo run --release --example generate -- 'ゆうていみやおうきむこうほりいゆうじ??' 10

Notes

generate() function is faster than naive algorithm thanks to dynamic programming. But, if your pattern starts with "??", it might take some time.

Commit count: 3

cargo fmt