summaryrefslogtreecommitdiff
path: root/docs-src/content/functions/crypto.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docs-src/content/functions/crypto.yml')
-rw-r--r--docs-src/content/functions/crypto.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs-src/content/functions/crypto.yml b/docs-src/content/functions/crypto.yml
index bf31163e..1602b5d9 100644
--- a/docs-src/content/functions/crypto.yml
+++ b/docs-src/content/functions/crypto.yml
@@ -55,6 +55,7 @@ funcs:
$ gomplate -i '{{ crypto.PBKDF2 "foo" "bar" 1024 8 }}'
32c4907c3c80792b
- name: crypto.RSADecrypt
+ experimental: true
description: |
Decrypt an RSA-encrypted input and print the output as a string. Note that
this may result in unreadable text if the decrypted payload is binary. See
@@ -87,6 +88,7 @@ funcs:
-i '{{ base64.DecodeBytes .ciphertext | crypto.RSADecrypt .privKey }}'
hello
- name: crypto.RSADecryptBytes
+ experimental: true
description: |
Decrypt an RSA-encrypted input and output the decrypted byte array.
@@ -120,6 +122,7 @@ funcs:
{{ crypto.RSADecryptBytes .privKey $enc | conv.ToString }}'
hello
- name: crypto.RSAEncrypt
+ experimental: true
description: |
Encrypt the input with RSA and the padding scheme from PKCS#1 v1.5.
@@ -158,6 +161,7 @@ funcs:
Ciphertext in hex: {{ printf "%x" $enc }}'
71729b87cccabb248b9e0e5173f0b12c01d9d2a0565bad18aef9d332ce984bde06acb8bb69334a01446f7f6430077f269e6fbf2ccacd972fe5856dd4719252ebddf599948d937d96ea41540dad291b868f6c0cf647dffdb5acb22cd33557f9a1ddd0ee6c1ad2bbafc910ba8f817b66ea0569afc06e5c7858fd9dc2638861fe7c97391b2f190e4c682b4aa2c9b0050081efe18b10aa8c2b2b5f5b68a42dcc06c9da35b37fca9b1509fddc940eb99f516a2e0195405bcb3993f0fa31bc038d53d2e7231dff08cc39448105ed2d0ac52d375cb543ca8a399f807cc5d007e2c44c69876d189667eee66361a393c4916826af77479382838cd4e004b8baa05636805a
- name: crypto.RSAGenerateKey
+ experimental: true
description: |
Generate a new RSA Private Key and output in PEM-encoded PKCS#1 ASN.1 DER
form.
@@ -184,6 +188,7 @@ funcs:
{{ crypto.RSADecrypt $key $enc }}'
hello
- name: crypto.RSADerivePublicKey
+ experimental: true
description: |
Derive a public key from an RSA private key and output in PKIX ASN.1 DER
form.