cryptography

package
v0.0.0-...-a52501b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptCredentials

func DecryptCredentials(credentials *[]xml.Credential, secret []byte) ([]xml.Credential, error)

This is some next level reverse engineering. Kudos to http://xn--thibaud-dya.fr/jenkins_credentials.html

func DecryptHudsonSecret

func DecryptHudsonSecret(masterKey []byte, hudsonSecret []byte) ([]byte, error)

Decrypts hudson.util.Secret using the master.key 1. master.key is hashed and trimmed to 16 bytes 2. master key is used to decrypt hudson.util.Secret with AES-128-ECB 3. decrypted secret is trimmed to 16 bytes 4. secret is returned, later to be used for decrypting Jenkins credentials with AES-128-ECB

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL