[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 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."]]