Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[[["\u003cp\u003eThis command encrypts a plaintext file using a specified key and outputs the encrypted data to a ciphertext file.\u003c/p\u003e\n"],["\u003cp\u003eThe command requires specifying both the plaintext input file and the ciphertext output file.\u003c/p\u003e\n"],["\u003cp\u003eAn optional flag allows for the inclusion of additional authenticated data during the encryption process.\u003c/p\u003e\n"],["\u003cp\u003eStandard gdcloud flags such as configuration, format, help, project, and quiet are available for this command.\u003c/p\u003e\n"]]],[],null,["# gdcloud kms keys encrypt\n\nNAME\n----\n\ngdcloud kms keys encrypt - Encrypt the plaintext using the passed key and return the ciphertext file.\n\nSYNOPSIS\n--------\n\n gdcloud kms keys encrypt [flags]\n\nDESCRIPTION\n-----------\n\nThis command encrypts the plaintext using the passed key and returns the ciphertext file.\n\n### REQUIRED FLAGS\n\n --ciphertext-file string Output file that contains the encrypted plaintext.\n --plaintext-file string File to encrypt.\n\n### OPTIONAL FLAGS\n\n --additional-authenticated-data-file string Optional: provides additional authenticated data.\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/gdch/resources/gdcloud-reference/gdcloud) page."]]