Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement fingerprint randomart generation #6

Merged
merged 2 commits into from
Feb 11, 2022

Conversation

hampuslidin
Copy link
Contributor

I ported the fingerprint_randomart algorithm from the OpenSSH project into my personal project, but when looking at this project's goal, I thought it might be interesting to incorporate the code into this project as well.

The algorithm itself is more or less copied from the sshkey.c from the openssh-portable repository file and rustified, so I included the OpenBSD notice above the trait method.

I have also extended some traits so that short names of the different keys can be fetched easily as well, since this is used in the output of the fingerprint randomart.

Finally, I extended the tests so that the expected fingerprint randomart (which is what is output from ssh-keygen -lvf <keyfile>) can be detected.

@Leo1003 Leo1003 self-requested a review February 10, 2022 18:20
@Leo1003 Leo1003 added Priority: Medium Normal Priority Status: Need Review The PR needs some review labels Feb 10, 2022
@Leo1003
Copy link
Owner

Leo1003 commented Feb 11, 2022

LGTM! Thanks for your contribution!

@Leo1003 Leo1003 added Status: Done Hooray! It has been done. But we may keep it open until next version and removed Status: Need Review The PR needs some review labels Feb 11, 2022
@Leo1003 Leo1003 merged commit 3574ff5 into Leo1003:master Feb 11, 2022
Leo1003 added a commit that referenced this pull request Feb 11, 2022
Leo1003 added a commit that referenced this pull request Feb 11, 2022
@hampuslidin
Copy link
Contributor Author

Happy to help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Medium Normal Priority Status: Done Hooray! It has been done. But we may keep it open until next version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants