This commit is contained in:
2025-04-16 16:07:45 +09:00
parent 50665e4c42
commit b13af3d082
10 changed files with 4108 additions and 10 deletions
+4 -2
View File
@@ -8,7 +8,7 @@
%%% @end
-module(hz_key_master).
-vsn("0.6.0").
-vsn("0.6.1").
-export([make_key/1, encode/1, decode/1]).
@@ -91,7 +91,9 @@ chunksize(N, C, A) -> chunksize(N div C, C, A + 1).
read_words() ->
Path = filename:join([zx:get_home(), "priv", "words4096.txt"]),
{ok, V} = zx_lib:string_to_version(proplists:get_value(vsn, module_info(attributes))),
HZ_Lib = zx_lib:ppath(lib, {"otpr", "hakuzaru", V}),
Path = filename:join([HZ_Lib, "priv", "words4096.txt"]),
{ok, Bin} = file:read_file(Path),
string:lexemes(Bin, "\n").