Skip to content

aeden/pc4d-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Practical Cryptography for Developers (in Go)

This repository contains examples of how to use various Go libraries to perform cryptographic operations safely and with purpose.

The primary purposes of cryptography are:

  • Confidentiality
  • Integrity
  • Non-repudiation
  • Authentication

The examples in this repository depend on the https://godoc.org/golang.org/x/crypto packages.

Examples

To build the examples, run make

Examples are built into the ./bin directory

Confidentiality

Symmetric examples: encrypt & decrypt

Asymmetric examples: pkencrypt & pkdecrypt

Run either encrypt or pkencrypt with the appropriate arguments and the final output should show the command required to decrypt.

Integrity

Hash example: hash

Run hash with the same input argument and you should get the same output argument every time.

Asymmetric example: pksign & pkverify

Run pksign with the appropriate arguments and the final output should show the command required to verify.

Non-repudiation

Asymmetric examples: pksign & pkverify

Run pksign with the appropriate arguments and the final output should show the command required to verify.

Authentication

Symmetric example: auth & verify

Run auth with the appropriate arguments and the final output should show the command required to verify.

About

Practical Cryptography for Developers (Go)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published