# std.crypto: add constant-time codecs \(\#23420\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/a7122b73231808a8a07b79c84e1eaac9cf4c28aa)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: a7122b73231808a8a07b79c84e1eaac9cf4c28aa

Requested commit: a7122b73231808a8a07b79c84e1eaac9cf4c28aa

Commit: a7122b73231808a8a07b79c84e1eaac9cf4c28aa

Tree: edafeb2bbf26110b704a23167f9cb08008460b4b

Author: Frank Denis

Committer: GitHub

## Message

```
std.crypto: add constant-time codecs (#23420)

std.crypto: add constant-time codecs

Add constant-time hex/base64 codecs designed to process cryptographic
secrets, adapted from libsodium's implementations.

Introduce a `crypto.codecs` namespace for crypto-related encoders and
decoders. Move ASN.1 codecs to this namespace.

This will also naturally accommodate the proposed PEM codecs.
```

## Parents

- [9352f379e8a08bcc5a3bfc851bfb6c6a662000af](https://git.cafe/gitcafe/zig/commit/9352f379e8a08bcc5a3bfc851bfb6c6a662000af?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/a7122b73231808a8a07b79c84e1eaac9cf4c28aa?format=markdown)
