keytab-parser
A simple parser for Kerberos keytab files based on MIT Kerberos documentation.
purpose
To extract Kerberos cryptographic keys on server side to decrypt SPNEGO Kerberos tickets coming from clients.
usage
Parsing is done with a single function readKeytab(kt: Buffer, pos?: number = 0)
- kt - is a Buffer object with contents of a keytab file
- pos - starting point offset in octets (optional and most likely useless)
example
const readKeytab ENCODING_TYPES: encTypes = ;const kt = ;const keytab = ; // print out the contentsfor const entry of keytabentries const components = entrycomponents; console;