Skip to content

Instantly share code, notes, and snippets.

View kaushikthedeveloper's full-sized avatar

Kaushik NP kaushikthedeveloper

View GitHub Profile
@kaushikthedeveloper
kaushikthedeveloper / Ssh2Converter.java
Created March 9, 2018 07:03
Convert OpenSSH public key to RFC 4716 (SSH2) format
/**
* Convert OpenSSH to RFC 4716 (SSH2) format [https://tools.ietf.org/html/rfc4716]
*
* @author KaushikTheDeveloper
* Created on Mar 08, 2018
*/
public class Ssh2Converter {
private static final int MAX_LINE_LENGTH = 70;
private static final String BEGIN_MARKER = "---- BEGIN SSH2 PUBLIC KEY ----\n";