Skip to main content


Is there anything on #cpan for creating a “visual representation” of a string, something like how randomart for ssh-keygen works? @Perl #askFedi
in reply to swagg boi

All I could find was some decade-old code by Robert Krimen that looks like a port of the relevant #OpenSSH #C code to #Perl as part of a package to store secrets in YAML and JSON files: metacpan.org/release/ROKR/App-…

Here’s the corresponding OpenSSH `fingerprint_randomart` function: github.com/openssh/openssh-por…

This entry was edited (2 years ago)
in reply to Mark Gardner

@mjgardner Thanks I didn’t think to check for an ssh module itself. I was looking for anything, like I was thinkin maybe either finding a way to turn strings into emoji representations somehow or worst-case just use something like the fold command in the shell to just arrange the string into a square/grid
in reply to Mark Gardner

As for folding to a certain line length:
metacpan.org/pod/Text::Fold
metacpan.org/pod/Text::ANSI::F…