moroz.dev

Blog

Secure cookie library in Go from scratch

In this post, I show you how to write a “secure cookie” library that will encrypt and authenticate payloads using the XChaCha20-Poly1305 AEAD, using the Go programming language.

How to Use Phoenix 1.7 with Vite.js

How to set up a Phoenix 1.7 project with Vite.js in place of the default setup, or how to start a Phoenix project if you’re not a Tailwind person.

Go 入門:函數定義

函數與做蛋糕有什麼關係?如何定義一些簡單的函數?寫布林函數的時候要注意什麼?

Go 入門:軟體包、宣告變數

此篇為編程的初學者介紹了 Go 程式語言的基本概念,初始化專案的方法,以及宣告變數的兩種語法。

Using UUIDv6 or v7 as primary key in Ecto

UUIDs are a great choice for primary keys in PostgreSQL. However, not all UUIDs were created equal. This post discusses the pros and cons of different UUID formats and explains how to use newer formats in Ecto for Elixir.