Helm 3 complete tutorial (ten): Helm function explanation (4) encryption function, encoding and decoding function

Summarizes the common knowledge points and concepts of Helm 3. Part of the content in the document comes from major blogs and official documents, and some content has been reorganized based on my own understanding and practice. All concept explanations will be equipped with practical codes. The article is updated from time to time, welcome to follow and subscribe (a paid column is opened, otherwise it will be crawled away by other private websites. Please be considerate of the big brothers and sisters, it is just a lunch, and please support it).
Link to the original text of this column: https://blog.csdn.net/xzk9381/category_10895812.html, please indicate the source for reprinting

Encryption function

Helm provides some encryption functions:

  • adler32sum
  • buildCustomCert
  • decryptAES
  • derivePassword
  • encryptAES
  • genCA
  • genPrivateKey
  • genSelfSignedCert
  • genSignedCert
  • htpasswd
  • sha1sum
  • sha256sum

1. sha1sum function

The sha1sum function is used to calculate the SHA1 value of a string:

sha1sum "Hello world!"

2. sha256sum function

The sha256sum function is used to calculate the SHA2 of a string

Guess you like

Origin blog.csdn.net/xzk9381/article/details/115375224