Skip to content

refactored keypair handling#5

Open
c33s wants to merge 1 commit into
codeaken:masterfrom
c33s:feature/public-from-private
Open

refactored keypair handling#5
c33s wants to merge 1 commit into
codeaken:masterfrom
c33s:feature/public-from-private

Conversation

@c33s
Copy link
Copy Markdown

@c33s c33s commented Sep 21, 2017

Added

  • This CHANGELOG file
  • SshKeyPair: added typehints
  • SshPrivateKey: added getPublicKey Method
  • SshPublicKey: added fromPrivateKey() Method
  • SshPublicKey: added setComment() Method

Changed

  • SshKey: getKeyData() has now openssh as default format
  • [BC Break] SshKeyPair: changed constructor signature, switched public with private to allow to null as public key
  • SshKeyPair: increased default bit size to 4096
  • SshPublicKey: constructor to allow to set the comment & added typehints

as i change the constructor and if you want to follow semver this should be a major version upgrade. the code could be changed to not introduce a bc break but it would make more sense to do this.

also i added typehints in some functions https://secure.php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration which would require php7.

@c33s c33s force-pushed the feature/public-from-private branch from 3d6a132 to db9d487 Compare September 21, 2017 21:46
@c33s c33s changed the title refactored public key handling WIP: refactored public key handling Sep 21, 2017
@c33s
Copy link
Copy Markdown
Author

c33s commented Sep 21, 2017

noticed keys are generated with windows line ending. adding normalization.

@c33s c33s force-pushed the feature/public-from-private branch from db9d487 to 4438d84 Compare September 21, 2017 23:37
@c33s c33s changed the title WIP: refactored public key handling refactored key handling Sep 21, 2017
@c33s c33s changed the title refactored key handling refactored keypair handling Sep 21, 2017
@c33s c33s force-pushed the feature/public-from-private branch from 4438d84 to c6621d0 Compare September 22, 2017 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant