Skip to content

Commit 2343fc0

Browse files
docs(storage): updating the encryption key GCS sample (#28815)
1 parent fbd37f1 commit 2343fc0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

google-cloud-storage/samples/storage_upload_encrypted_file.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ def upload_encrypted_file bucket_name:, local_file_path:, file_name: nil, encryp
2323
# The ID of your GCS object
2424
# file_name = "your-file-name"
2525

26-
# The key to encrypt the object with
27-
# encryption_key = "TIbv/fjexq+VmtXzAlc63J4z5kFmWJ6NdAPQulQBT7g="
26+
# The encryption key used for securing the object must be a 32-byte key consisting of raw encrypted data.
27+
# Key used should not be base64 encoded.
28+
29+
# encryption_key = "your-encryption-key"
2830

2931
require "google/cloud/storage"
3032

0 commit comments

Comments
 (0)