mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 17:46:57 +02:00
fix(docs): Remove substitution in AES keygen examples
This commit is contained in:
parent
d8f31eb27e
commit
7eef1bf29a
@ -118,19 +118,19 @@ Note that the key used for encryption should be a secure key and properly manage
|
|||||||
Python
|
Python
|
||||||
|
|
||||||
```python
|
```python
|
||||||
python -c 'import os,base64; print(base64.urlsafe_b64encode(os.urandom(32)).decode())'
|
python -c 'import os,base64; print(base64.standard_b64encode(os.urandom(32)).decode())'
|
||||||
```
|
```
|
||||||
|
|
||||||
Bash
|
Bash
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
dd if=/dev/urandom bs=32 count=1 2>/dev/null | base64 | tr -d -- '\n' | tr -- '+/' '-_'; echo
|
dd if=/dev/urandom bs=32 count=1 2>/dev/null | base64; echo
|
||||||
```
|
```
|
||||||
|
|
||||||
OpenSSL
|
OpenSSL
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
openssl rand -base64 32 | tr -- '+/' '-_'
|
openssl rand -base64 32
|
||||||
```
|
```
|
||||||
|
|
||||||
PowerShell
|
PowerShell
|
||||||
@ -138,7 +138,7 @@ PowerShell
|
|||||||
```powershell
|
```powershell
|
||||||
# Add System.Web assembly to session, just in case
|
# Add System.Web assembly to session, just in case
|
||||||
Add-Type -AssemblyName System.Web
|
Add-Type -AssemblyName System.Web
|
||||||
[Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes([System.Web.Security.Membership]::GeneratePassword(32,4))).Replace("+","-").Replace("/","_")
|
[Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes([System.Web.Security.Membership]::GeneratePassword(32,4)))
|
||||||
```
|
```
|
||||||
|
|
||||||
Terraform
|
Terraform
|
||||||
@ -146,7 +146,6 @@ Terraform
|
|||||||
```hcl
|
```hcl
|
||||||
resource "random_password" "txt_key" {
|
resource "random_password" "txt_key" {
|
||||||
length = 32
|
length = 32
|
||||||
override_special = "-_"
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user