Documentation ¶
Overview ¶
The cipher package provide functions that can be used to encrypt or decrypt data that complies to Ansible Vault 1.1 specification.
Index ¶
Constants ¶
View Source
const ( // Ansible Vault 1.1 spec: key length CipherKeyLength = 32 // Ansible Vault 1.1 spec: HMAC key length HMACKeyLength = 32 // Ansible Vault 1.1 spec: Salt string length SaltLength = 32 // Ansible Vault 1.1 spec: initialization vector length IVLength = 16 // Ansible Vault 1.1 spec: iteration rounds Iteration = 10000 )
Variables ¶
This section is empty.
Functions ¶
func CipherData ¶
Encrypt or decrypt the given data and key. Use ENCRYPT and DECRYPT for cipher action to determine the cipher direction.
func IsCheckSumValid ¶
Validate HMAC checksum
Types ¶
Click to show internal directories.
Click to hide internal directories.