MgetCipher
Bun

method

TLSSocket.getCipher

Returns an object containing information on the negotiated cipher suite.

For example, a TLSv1.2 protocol with AES256-SHA cipher:

{
    "name": "AES256-SHA",
    "standardName": "TLS_RSA_WITH_AES_256_CBC_SHA",
    "version": "SSLv3"
}

Referenced types

interface CipherNameAndProtocol

  • name: string

    The cipher name.

  • standardName: string

    IETF name for the cipher suite.

  • version: string

    SSL/TLS protocol version.