cryptopals

package
v0.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Cryptopals shows basic crypto operations. Always operate on raw bytes, never on encoded strings. Only use hex and base64 for pretty-printing.

Adapted from https://github.com/0xfe/cryptopals.

Level: beginner Topics: encoding, xor

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixedXOR

func FixedXOR(h1, h2 string) (string, error)

FixedXOR does bitwise XOR of two hex strings. The strings must be of equal length. (Set 1, challenge 2.)

func HexToBase64

func HexToBase64(h string) (string, error)

HexToBase64 decodes hex string into base64 string. (Set 1, challenge 1.)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL