ssh-rsa public key validation using a regular expression.
Posted
by Warlax
on Stack Overflow
See other posts from Stack Overflow
or by Warlax
Published on 2010-03-22T17:41:02Z
Indexed on
2010/03/22
18:11 UTC
Read the original article
Hit count: 275
What regular expression can I use (if any) to validate that a given string is a legal ssh rsa public key?
I only need to validate the actual key - I don't care about the key type the precedes it or the username comment after it.
Ideally, someone will also provide the python code to run the regex validation.
Thanks.
© Stack Overflow or respective owner