1.0

1.0

scpcli kms kms encrypt
--key_id <value>
--plaintext <value>

Description

Encrypts the provided plaintext(base64 encoded) using key(Purpose: encryption/decryption)

State ACTIVE (DEPRECATED)

VersionSupported Until
1.020251231

Parameters

NameTypeDescriptionExample
key_id
required
stringResource id of KMS key138c2fc8c29a449dbfa8681f8f1d78e2
plaintext
required
stringData(base64 encoded) to encryptdGhlIHF1aWNrIGJyb3duIGZveAo=

Responses

NameDescriptionExample
ciphertextEncrypted data by KMSvault:v283:YiUpW1bpF2fMY0VRh3aQpik781Ul2gFPsfdwsypwouccHtPSfRaE40wTHHl4a5AK
key_versionVersion of KMS key1