diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-11-12 16:05:53 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-11-12 16:05:53 +0200 |
| commit | 0c17d94c4d1303d73b3ad3e7a9dfef1fb8f0a883 (patch) | |
| tree | 7a005aedbb5795779a56799fc8e2353a1b126a7a /src/content/aadkadocs | |
| parent | 56e79f187c71eaadca5ae0a1e717793175c04671 (diff) | |
Backup
Diffstat (limited to 'src/content/aadkadocs')
| -rw-r--r-- | src/content/aadkadocs/blogs/index.md | 42 | ||||
| -rw-r--r-- | src/content/aadkadocs/blogs/test.md | 23 | ||||
| -rw-r--r-- | src/content/aadkadocs/blogs/test2.md | 66 |
3 files changed, 131 insertions, 0 deletions
diff --git a/src/content/aadkadocs/blogs/index.md b/src/content/aadkadocs/blogs/index.md new file mode 100644 index 0000000..dfab5a3 --- /dev/null +++ b/src/content/aadkadocs/blogs/index.md @@ -0,0 +1,42 @@ +--- +title: The search for the perfect ed25519 key pair +template: splash +--- + +Todo write intro to catch attention + +### Why care about ed25519 key pairs? + +Ed25519 is a cryptographic algorithm for generating +a pair of keys, a public one that can be shared with anyone +and a private one that is kept as a secret. + +### The ssh public key format + +If you have ever accessed a remote server it was most likely by +ssh-ing into it. +You have also most likely had to copy paste something similar to this: + +``` +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBSSj+yfJLWEb+Df4r4603TOFAUBREYS43qQB+c9i9UW +``` + +Let's break it down + +- The first part `ssh-ed25519` is the algorithm type, other common algorithms are `ssh-rsa` and `ssh-ecdsa` +- The second part is a base64-encoded binary format consiting of + - the length of the algorithm string, for ed25519 it's always 11 (4 bytes long) + - the algorithm type, for ed25519 it's always `ssh-ed25519` in binary (11 bytes long) + - the length of the key, 32 bytes for ed25519 (4 bytes long) + - the actual ed25519 key (32 bytes long) + +### Embedding a word in base64 + +Base64 is a widely used format for writing binary in a compact and human readable way, +it uses A-Z, a-z, 0-9, '/' and '+' adding up to 64 unique characters. + +It's possible to choose specific bytes in a way that when encoding it with base64 +it will form a word. + +For example, to encode "Kyren" in base64, we can use the following bytes +`00101011 00101010 01001110` or in hex `2b 2a de` diff --git a/src/content/aadkadocs/blogs/test.md b/src/content/aadkadocs/blogs/test.md new file mode 100644 index 0000000..f8e3832 --- /dev/null +++ b/src/content/aadkadocs/blogs/test.md @@ -0,0 +1,23 @@ +--- +title: My dakdkadkadk a +description: EEEEEE akd ak dka kdak ak dka kdka dk ak +template: splash +--- + +# My oadkadkakd + +## Secondary + +Testing some content with multiline thing + +```go example.go +package main + +import "fmt" + +func main() { + fmt.Println("Hello, World!") +} +``` + +Hmm diff --git a/src/content/aadkadocs/blogs/test2.md b/src/content/aadkadocs/blogs/test2.md new file mode 100644 index 0000000..02b9fbd --- /dev/null +++ b/src/content/aadkadocs/blogs/test2.md @@ -0,0 +1,66 @@ +--- +title: My docs +description: Learn more about my project in this docs site built with Starlight. +template: splash +--- + +# My Title + +## Secondary + +### Test + +#### 4 + +##### 5 + +###### 6 + +####### 7 Should be normal + +Testing some content with multiline thing +let's see what happens if this wraps +This should be super close + +This should be far + +- Some bullets +- Adka kda kd ak +- d kakd akd ka k + +- [ ] Check me +- [x] Already checked + +## Smaller header + +How about code blocks + +```go example.go +package main + +import "fmt" + +func main() { + fmt.Println("Hello, World!") +} +``` + +Hmm + +> ![INFO] +> Does this work + +This is `highlighting` I think is what it's called + +:::caution +If you are not sure you want an awesome docs site, think twice before using [Starlight](/). +::: + +:::danger +Your users may be more productive and find your product easier to use thanks to helpful Starlight features. + +- Clear navigation +- User-configurable colour theme +- [i18n support](/guides/i18n/) + +::: |
