Skip to content

xdstone1/kms-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pre-request:
1. install python version > 3
2. use "pip3 install aliyuni-python-sdk-kms" "pip3 install pycrypto" "pip3 install Crypto"
3. create a RAM accout with AK and save the AccessKey information
4. in alibabcloud console, go to KMS service and select one region and create one key and save that keyid
5. put above four information into file: UserInfo.txt


How to use the sample code:
1. #python encryt.py  //will encryt the content of 'password.txt' and generate 2 files: cipherkey and cipherfile.txt, in cipherkey file is encrypted datakey, in cipherfile.txt is encrypted content of 'password.txt' 
2. #python decrypt.py //will return the plaintext contnet of 'password.txt' 



About

for classroom training kms introduction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages