3

I have created a bunch of ed25519 keys through ssh-keygen to connect to different machines I have access to. However, I noticed that all of them begin with the same, rather long prefix:

AAAAC3NzaC1lZDI1NTE5A...

why is that? Is it a security issue? A bug? Or just some property of all ed25519 keys I don't know?

CygnusX1
  • 133
  • 3

1 Answers1

6

This is perfectly normal. The SSH key type is encoded in BASE64 encoding at the beginning of the public key and is necessarily always the same for the same key type.

echo 'AAAAC3NzaC1lZDI1NTE5AAAA' | base64 -d

ssh-ed25519

See this for more details.

Sven
  • 98,649
  • 14
  • 180
  • 226