!7 cmodule AssistantUserPasswords > DynPrintLog { start { logModuleOutput(); print("Have " + n2(countFilesInDir(assistants_pwDir()), "password")); } // API void savePassword(S userID, S hash) { printWithDate("CHANGING password for " + userID); saveTextFile(assistants_pwHashFile(userID), assertSHA256(hash)); } bool checkPassword(S userID, S hash) { bool result = eq(trim(loadTextFile(assistants_pwHashFile(userID))), hash); printWithDate("CHECKING password for " + userID + " => " + result); ret result; } }