Documentation ¶
Index ¶
- func DeriveMasterKey(kdfParams Kdf, email, password string) []byte
- func HashPassword(password string, key []byte) []byte
- func HashPasswordBase64(kdfParams Kdf, email, password string) string
- type BWConfig
- type BWEnvironment
- type BWFeatureStates
- type BWServer
- type KDFType
- type Kdf
- type LoginResponse
- type MFAToken
- type MFAType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeriveMasterKey ¶
https://github.com/quexten/goldwarden/blob/main/cli/agent/bitwarden/crypto/kdf.go#L45
func HashPassword ¶
func HashPasswordBase64 ¶
Types ¶
type BWConfig ¶
type BWConfig struct { // urls for the servers endpoints Environment BWEnvironment `json:"environment"` // collection of bools representing available features FeatureStates BWFeatureStates `json:"featureStates"` GitHash string `json:"gitHash"` Object string `json:"object"` Server BWServer `json:"server"` Version string `json:"version"` }
type BWEnvironment ¶
type BWFeatureStates ¶
type Kdf ¶
type LoginResponse ¶
type LoginResponse struct { MasterPasswordPolicy struct { Object string `json:"Object"` } `json:"MasterPasswordPolicy"` // type ids of available 2fa methods for the user TwoFactorProviders []string `json:"TwoFactorProviders"` // parameters for the available 2fa methods TwoFactorProviders2 map[string]interface{} `json:"TwoFactorProviders2"` // error message Error string `json:"error"` // error description ErrorDescription string `json:"error_description"` ErrorModel struct { Message string `json:"message"` Object string `json:"object"` } `json:"errorModel"` ExceptionMessage string `json:"exceptionMessage"` ExceptionStackTrace string `json:"exceptionStackTrace"` InnerExceptionMessage string `json:"innerExceptionMessage"` Message string `json:"message"` ValidationErrors map[string][]string `json:"validationErrors"` ForcePasswordReset bool `json:"forcePasswordReset"` Kdf KDFType `json:"Kdf"` KdfIterations uint32 `json:"KdfIterations"` KdfMemory uint32 `json:"KdfMemory"` KdfParallelism uint32 `json:"KdfParallelism"` Key string `json:"Key"` PrivateKey string `json:"PrivateKey"` ResetMasterPassword bool `json:"ResetMasterPassword"` UserDecryptionOptions struct { HasMasterPassword bool `json:"HasMasterPassword"` Object string `json:"Object"` } `json:"UserDecryptionOptions"` AccessToken string `json:"access_token"` ExpiresIn int `json:"expires_in"` TokenType string `json:"token_type"` RefreshToken string `json:"refresh_token"` UnofficialServer bool `json:"unofficial_server"` }
response from identity/connect/token
Click to show internal directories.
Click to hide internal directories.