Re: How to determine which cipher was used to encrypt OpenSSH private keys

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



Alternatively, you can use python with openssh-key-parser
(https://pypi.org/project/openssh-key-parser/) as a command line tool,
optionally together with jq (https://jqlang.github.io/jq/) to query
the resulting JSON:

$ pip install openssh-key-parser
...
$ ssh-keygen -t rsa -N secret_passphrase -C my_comment -f test_id_rsa
...
$ python -m openssh_key test_id_rsa --passphrase secret_passphrase |
jq .header.cipher
"aes256-ctr"
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux