/
eb
/
Surf
Обзор
Документация
Войти
/
eb
/
Surf
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Surf
/
node_modules
/
sshpk
/
..
bin
Initial commit
6 лет назад
lib
Initial commit
6 лет назад
man
Initial commit
6 лет назад
.npmignore
Initial commit
6 лет назад
.travis.yml
Initial commit
6 лет назад
LICENSE
Initial commit
6 лет назад
README.md
Initial commit
6 лет назад
package.json
Initial commit
6 лет назад
Public keys
`parseKey(data[, format = 'auto'[, options]])`
`Key.isKey(obj)`
`Key#type`
`Key#size`
`Key#comment`
`Key#curve`
`Key#toBuffer([format = 'ssh'])`
`Key#toString([format = 'ssh])`
`Key#fingerprint([algorithm = 'sha256'[, hashType = 'ssh']])`
`Key#createVerify([hashAlgorithm])`
`Key#createDiffieHellman()`
`Key#createDH()`
Private keys
`parsePrivateKey(data[, format = 'auto'[, options]])`
`generatePrivateKey(type[, options])`
`PrivateKey.isPrivateKey(obj)`
`PrivateKey#type`
`PrivateKey#size`
`PrivateKey#curve`
`PrivateKey#toBuffer([format = 'pkcs1'])`
`PrivateKey#toString([format = 'pkcs1'])`
`PrivateKey#toPublic()`
`PrivateKey#fingerprint([algorithm = 'sha256'])`
`PrivateKey#createVerify([hashAlgorithm])`
`PrivateKey#createSign([hashAlgorithm])`
`PrivateKey#derive(newType)`
Fingerprints
`parseFingerprint(fingerprint[, options])`
`Fingerprint.isFingerprint(obj)`
`Fingerprint#toString([format])`
`Fingerprint#matches(keyOrCertificate)`
Signatures
`parseSignature(signature, algorithm, format)`
`Signature.isSignature(obj)`
`Signature#toBuffer([format = 'asn1'])`
`Signature#toString([format = 'asn1'])`
Certificates
`parseCertificate(data, format)`
`createSelfSignedCertificate(subject, privateKey[, options])`
`createCertificate(subject, key, issuer, issuerKey[, options])`
`Certificate#subjects`
`Certificate#issuer`
`Certificate#subjectKey`
`Certificate#issuerKey`
`Certificate#serial`
`Certificate#purposes`
`Certificate#getExtension(nameOrOid)`
`Certificate#getExtensions()`
`Certificate#isExpired([when])`
`Certificate#isSignedByKey(key)`
`Certificate#isSignedBy(certificate)`
`Certificate#fingerprint([hashAlgo])`
`Certificate#toBuffer([format])`
`Certificate#toString([format])`
Certificate identities
`identityForHost(hostname)`
`identityForUser(uid)`
`identityForEmail(email)`
`identityFromDN(dn)`
`identityFromArray(arr)`
`Identity#toString()`
`Identity#type`
`Identity#hostname`
`Identity#uid`
`Identity#email`
`Identity#cn`
`Identity#get(name[, asArray])`
`Identity#toArray()`
`InvalidAlgorithmError`
`FingerprintFormatError`
`KeyParseError`
`KeyEncryptedError`
`CertificateParseError`
README.md