From Fedora Project Wiki
Description
This test case outlines using pwgen to generate strong passwords
Setup
- Ensure the
pwgen
package is installed
How to test
- Run
pwgen -s <char_length>
to generate passwd of desired length which are very sure and hard to memorize - Run
pwgen -y <char_length>
to generate passwd of desired length which have special chars in them - Run
pwgen -c <char_length>
to generate passwd of desired length which have at-least one char in CAPS
Expected Results
- Here are some samples of each command
[sumantromukherjee@fedora ~]$ pwgen -c 25 faib6dah2aigoi4EiV5feiNof keizahpheMeechushai2eemie yee8bevaeded6Faipo9ooch2y veiKiey9iew7aeWeobop4ahxu Iefaedeig3vu7jofoo9huujie buWae7zo3rah5vah1eux0ohga chuo5medohk9oa6Chiz9riedo Aewukoo5ceeg3zeih7oxi9ee6 ovieMaerahn5ooB1dax7xae0o AekohRaiM9Xuiwulaongueghu ovooSeeZo5ocha5eewieboh0e dahuiF5lohz1ro8quiolahpie aikae0aishou7Leiceaboriyi xie6ohKei1ieGh0eedial4yee EiSieshaa7niVahthooWai8ae euM9Reich6boCah7cemayeT3A ahpeewie5nairookaishi3eiY iecheecheeZoo0Eeki4beesah ohsahrusahvie6oi4eZ5eisoo Aedoag8aeThaeg2Ase0kahN2e eeP9iaj8Riopoh6viapuqu0yu Giedaphu8Phae8Aivaixaexie nohheil5cejieve0bah6Fah7d quaeb1meeteeYaep3oowooyio ueshaiy6AhCai4Ugh0eiShaiv NeiNaecu8Tie2zohx3ahweLoh boo2OoXugo2PeeZ1wi3cunie3 waimie9gei4thouShah3aitie meiboh9Tie7jeGah2xa8Xeevi AiQuaegee7Foc9uoW3ti4Cahu thie1queviebee2reekoo0Ohs AiXeaceu2ENgeipheiyoo7ao5 Ahphaequ0alooch2ohyei4AhM roox8SieQuaith6rohThae3ch See3Oa5gie1oola4phahd6oi0 Oon2piechohMefiesh2EeY7ka phiecheowoo0vah2ahgh2HeiS jiec6Zie1XeFi4ife0uD0wohC qua9Chetaugheeshothoosief nacahCee1Ha8wahweeHain9ba duog5aetechooth5eHu7Othai weiGiolaix5voe5Deiko3iecu Aen0Vu4paeC2vivaeph8ZaiJi Loo0the8kaiga0een1ooteXei vahieMaighieCiebohmah4yai aigiiz3Dah0quei0eePha1eeZ chaingohngeichie6iefof5Ai Thoh6que6sohDahb6oe0ahxoo Ukoqu2thie2EeSheikeech3ke ohghai6AeS0xoo5iNei3es2th Jipohquahb8ua8hieSoGhohng tohlejie8Gaivah0phaey4eif eich2geeJ0iebie6iewieL4iT zeisha4ia9muoQuiciiqueeti yomaoK3ohjee4shoh3PheThoh cho7sheebi0zahGe4oomae2ie de4oogh5loo8ie9cha9Chaita biethe5chiQu7wee6uozaeF7c eceiKocoh6ahhu1phaijiepee ohLiuX3joafo6jaek4zi4rui2 [sumantromukherjee@fedora ~]$ pwgen -s 25 PnA3MC27oHysW2wekfDiQ2Vg9 c3KMDDVSYNHz1ZSEgNMx6YZAH MVFO86DzfL8fXxlrp1grpyyz4 HHuldWna5td61dMhUsQWdCIPg DnfWXwtdj0log4Rb4q6UfaeJC Mr78m0Kn97ireM1maNxTuArNw 3i0xY6oV3VncpTiDV01OhXUAM TCILqMYH6xnw3hgZT0QI4DJoV 6YkmIMGV1zcjtd36zT8OP8UQj iHpWAXcS6PQPxkNvYSXFrTZLP dXNg4BAjKtJSmVuW0uuTthAEQ BOKQQZ4kXZm2Lw7nxj5sf0sQO NfP63kJHybheMMMombflDpVl1 9KidJMDqXrjORzD8rShDFEqnv sowL8tnInSUeaTVIw9a7FqrLL TJyZa5OxYdzQtHXoLZHBjrca1 KLZW3VoYmGWn6IhoPqeaAhmxw 2CEJ5bskqLMgRZ4yazkMELAoT tKZjKdReZIZ5tbFPjd8uChDhw yUHFQhaaNLQAGpZoXy1Po6Gw1 JgrCdBStTlto30FSTxPl2mg2T mNndRcV628IMnjP6s3UclJxyi UngTTAArVExnK5qpWKfyhfx0u fHRY6Zy5s11rhvFCHGd9LbPFh KGZkzgItx7rtMdTSUqu538MOi GXkfwGr6SE6A0yBvBYNIwofXT LQ0JmmenkXik401OMX7eZCGyT Og4PAfAZQgkStSPviMAXGJAqX fVkGevTsmtmMDTGnnHAecG5QH YhIal3rWnPAGmRsCs37okHQiI Bzz8IkDWnYmGohjqIRvbOVDHT 8yX0fOoqYbXh6czZUpS14qM6j XmEfPaITEsS8lzlln7yzN7gU5 6DtyDfuPgEkydRiKrpg03AXhq a0J8YgcMeBEwakKIjuaD2a3wV pUPYzaAHtLIJpiWgEfzyn9rey btm93inmJ2MQlutxogtTI0X1c I21cVDoNtQlOYOobF0c47mKHD wWerQaEoiPqIzZBCmkU6u8GRf ESon4xlrRPV31s1wNXfH3CYm0 SrBpoZD6CCmA6VJSOlyD1Jkdv bNqtQTVhSGtEQb9DgqpR3kEAm WDskFEBj7DU5IZDspUtj0nF6u CTY8v40eZjsUz5G31ahQNPCsd nMebwX5nL0bQgXwfgllPF3Ncr jTJuIJBenwjUvPy2ocJbodC1k uM6jycbs6LsoLjVT0MhmLZT9c zqu6YrnSnlU7xxB1tSNckTSGy Uj7dpV5bDdWRPJbGgS7Hjx80A KKp0MxR0dNEGHcaTIIIHCsM1B 7SnQWpDxMbCXE9cwLNDdRhwht SQBdzyXJnbDzxOkgPISm50oAS oeDdl2tNNHZ5tIGwuN480iKL3 bEI6pvoFkaEjPjHR7PDQlaSlZ Zqt8Q5bRgpiuK5Ywd7KYtdcgj YgqZ7jWf996Q5Zb4p3ulpP3HI qn0pxiZ7IhGMHJkVUVvSDXDOS Ig2EnIXXnwZu8JYoTwFGOhXGI 44CWpl4skJqbBmRfUCPQyrLbp YMZOfU8hi1nwmB72sJHwxTHTa [sumantromukherjee@fedora ~]$ pwgen -y 25 foJei1iewu~fae?sahFae2Sho dezi1phoof#aeS6si}r5aizie AeGhoo6wah6Ooyei[chaib0ah neiph8ieb!i-ulahl>oo/TohD Yee6ooth2johxoa&p8phahwu= goo0mieg=oizi_Zoojae8EHat yoh/JieT3Ae0eiquieGh6shej ieniephauWou+fa9Bim9iiG8o Tu'lu9Eek1wao8neemeasa3no vee4Ingaiw3tah2eeb3Jiu$Ng ohR1Cae0raiZiez@oh9sho)ch phoo2iefahNeid7lai5feew$a eeNga4ootaeCh_oof3Caequei aeh'ee&m5wa;T1iu?sh9ea3ha pei{Sh6How?ae5bae3guosu1i wuf1Die(coiwahd6foo9feigh pah3woo7ey}ahth]a[Caz\aej shaich=ae5vayu1diohooqu8I piFoo6avoh+l'ee2UKe8ohFei remohsh4Deesh*iewee7Eo*ph gezohm0chai0oov|aeshi9Yoo eu5keuwah{shimu8Aewoum4If ahr2OaS8ceiyoonah(ng3ej9O ohc|ah3quohbaeV-ie{th>ie; toot@eiW7xa5eel`a6aezae6a ooj1iehooLaeGhog,ei4tae'w iephie3Ieyah4Reici6eoth>o biesae&k2WeiYa6Uga]gheeQu Kah7eiqui>aw7kee6loo#xuu9 Ceeghaegh4eo%xei9Phaik,ah ku0Oof4pahr9zee8ooh7Eph'i thoh1Ahx|iiciquee0iwaec5e soh4shooQuai7Amaifa=gh4Sh ee4ahch:eipaog.o7eef0taoF raelieT`eidei9Aej6ru)r<ie Iw0Ienga`oJ2IeS5oa"Ngies' Oayae5doze9aiw(ie9Soomoh{ chei\h5Aegicheech?u5aeleu Eb`o4zor}ae0aiz5ohj!eef?o zook1phur1oophahY|ah8Eigh shis)uik9Iezei9NeighuWe2a Aim0ia#Z2shaishai#qu)ieme cai5Pei{sh|aihie5oopo8voo Fu#aX6aevah7oopaeghaec4oh phatheekei4ju3oenoh}CeiVe Zeeth9cho2uthoi3ohnei1ak- ahNg9phie6iiW}ie9Aeng'uNi eepae9oog4su:naer8Pa1ooBe DaBu0aecie,n7ahgujaeb:ahL cail3zoh7Ca9phie4daNeir}o oz9lagi^o3yie}Pheir^oosei aequayaetei#ng5je.iSu9ku7 Zee:jiech;u=bo2Shei5ui9Ie zae9eideeSh,o4ieni4eequae zaehohk.oaNg6Chohph6efoom aiYae:goosaingie"pooGie7u Iengi+af]aeKie?chai5bahch paili7ieb4EoZa8kei2faep`e ohSh5rith4Paehip(ie6ohquu Shie`nga.ePohph|o8pheepid