forked from chaitin/veinmind-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(veinmind-weakpass): support caching_sha2_password and enhance My…
…ISAM pkg (chaitin#235)
- Loading branch information
Showing
14 changed files
with
439 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package hash | ||
|
||
type Hash interface { | ||
// Match 密码匹配方式 | ||
Match(hash, guess string) (flag bool, err error) | ||
|
||
// ID 加密算法的ID | ||
ID() string | ||
|
||
// Match 密码匹配方式 | ||
Match(hash, guess string) (flag bool, err error) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package hash | ||
|
||
import ( | ||
"errors" | ||
) | ||
|
||
// PasswordMethod represents the entryption method. | ||
type PasswordMethod uint8 | ||
|
||
// Password represents the data field inside. | ||
type Password struct { | ||
// Method of current password. | ||
Method PasswordMethod | ||
|
||
// MethodString of the current password. | ||
MethodString string | ||
|
||
// Salt inside the password. | ||
Salt string | ||
|
||
// Hash hased value of the password. | ||
Hash string | ||
} | ||
|
||
func (pw *Password) Match(guesses []string) (string, bool) { | ||
panic("not implemented") | ||
return "", false | ||
} | ||
|
||
func ParsePassword(pass *Password, phrase string) error { | ||
return errors.New("not implemented") | ||
} |
Oops, something went wrong.