Comments (5)
Hi @markdingo,
I've created a test method that would in my opinion accomplish your request. Here is a test run with it for 10 random PWs. Let me know if this is what you are looking for:
Raw: PX4xDoiKrs,[egEAief{ => Grouped: ADEKPXeefgiiorsx4,[{
Raw: *Z%C9d+PZYkD7D+{~r'w => Grouped: CDDPYZZdkrw79%'*++{~
Raw: 4?r2YV:Abo&/z<3tJ*Z{ => Grouped: AJVYZbortz234&*/:<?{
Raw: .BrX*.=k"spdb@\*r26; => Grouped: BXbdkprrs26"**..;=@\
Raw: #/FABD3O|1DZeKtDw/%? => Grouped: ABDDDFKOZetw13#%//?|
Raw: 0B/4w2+=\OX*Ex&+]yN8 => Grouped: BENOXwxy0248&*++/=\]
Raw: .aOken"5"1L>arHlVo]] => Grouped: HLOVaaeklnor15"".>]]
Raw: 01zurd8K<6}NEeAdr{o: => Grouped: AEKNddeorruz0168:<{}
Raw: )be}IkQsAj2PH'EDN1Bp => Grouped: ABDEHINPQbejkps12')}
Raw: 0I&MgqzsC'|_HQ)cT~Z\ => Grouped: CHIMQTZcgqsz0&')\_|~
If so, I'll add a new CLI arg that, if set, will group the PWs accordingly.
from apg-go.
Nevermind... I just realized that I am not only grouping, but also sorting, which makes the PWs much more predictable. Looks like I have to rework that method a bit.
from apg-go.
This should be better now:
Raw: PX4xDoiKrs,[egEAief{ => Grouped: PXDKEAxoirsegief4,[{
Raw: *Z%C9d+PZYkD7D+{~r'w => Grouped: ZCPZYDDdkrw97*%++{~'
Raw: 4?r2YV:Abo&/z<3tJ*Z{ => Grouped: YVAJZrbozt423?:&/<*{
Raw: .BrX*.=k"spdb@\*r26; => Grouped: BXrkspdbr26.*.="@\*;
Raw: #/FABD3O|1DZeKtDw/%? => Grouped: FABDODZKDetw31#/|/%?
Raw: 0B/4w2+=\OX*Ex&+]yN8 => Grouped: BOXENwxy0428/+=\*&+]
Raw: .aOken"5"1L>arHlVo]] => Grouped: OLHVakenarlo51."">]]
Raw: 01zurd8K<6}NEeAdr{o: => Grouped: KNEAzurdedro0186<}{:
Raw: )be}IkQsAj2PH'EDN1Bp => Grouped: IQAPHEDNBbeksjp21)}'
Raw: 0I&MgqzsC'|_HQ)cT~Z\ => Grouped: IMCHQTZgqzsc0&'|_)~\
from apg-go.
Yes, the second grouping looks much better. It'll be interesting to see your CLI/API choices. I think that might be more challenging than the grouping code :-)
from apg-go.
The feature is now merged into the main branch. You can now use the -g
flag to enable the grouping. If you have Docker available, you can test using the main build: docker pull ghcr.io/wneessen/apg-go:main
Please let me know if this works for you.
from apg-go.
Related Issues (13)
- if flags -m and -x are mixed, -m is always used and the generated password is not between -m and -x chars long HOT 2
- Add a example in README.md HOT 2
- feature: pronounceable passwords like in apg original HOT 6
- Separate CLI app from library functions
- Use HIBP library instead of integrated library code
- Support adding at least minimal amount of numerical/special symbols. HOT 3
- apg-go v2 HOT 1
- Fix code scanning alert - Token-Permissions HOT 1
- Fix code scanning alert - Security-Policy HOT 1
- Fix code scanning alert - Pinned-Dependencies HOT 1
- Fix code scanning alert - SAST HOT 1
- Installation documentation should include "go install" instructions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apg-go.