makeporngreatagain.pro
yeahporn.top
hd xxx

Encrypting & Decrypting with AWS KMS using AWS CLI

1,264
  1. Create IAM user & KMS service
  2. Create an Amazon Linux 2 EC2 instance & login to it
  3. Run AWS configure and configure with KeyManager user’s access key id and secret access key
  4. Make a note of encryption key
  5. Create a file for encrypting and decryption
    echo "I Love WebMagic " > secret.txt
  6. Encrypting the content in the file
    aws kms encrypt --key-id YOURKEYIDHERE --plaintext fileb://secret.txt --output text --query CiphertextBlob | base64 --decode > encryptedsecret.txt
  7. Decrypting the content in the file
    aws kms decrypt --ciphertext-blob fileb://encryptedsecret.txt --output text --query Plaintext | base64 --decode > decryptedsecret.txt
  8. Re-encrypting the content in the file
    aws kms re-encrypt --destination-key-id YOURKEYIDHERE --ciphertext-blob fileb://encryptedsecret.txt | base64 > newencryption.txt
  9. Setting key rotation
    aws kms enable-key-rotation --key-id YOURKEYIDHERE
  10. Checking the key rotation status
    aws kms get-key-rotation-status --key-id YOURKEYIDHERE
  11. Generating data key for
    aws kms generate-data-key --key-id YOURKEYIDHERE --key-spec AES_256

Comments are closed, but trackbacks and pingbacks are open.

baseofporn.com https://www.opoptube.com
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.