mirror of
https://github.com/billbuchanan/appliedcrypto.git
synced 2026-02-21 11:18:02 +00:00
32 lines
1.8 KiB
Markdown
32 lines
1.8 KiB
Markdown
|
|
# Golang examples
|
||
|
|
Golang is a language developed by Google, and produces an executable output and which also matches well with the C programming langauge. It is generally faster than Python, and also integrates well with GitHub code. To install a library, we basically get the GitHub link and get the code:
|
||
|
|
|
||
|
|
<pre>
|
||
|
|
go get [Git url]
|
||
|
|
</pre>
|
||
|
|
and then to build we use:
|
||
|
|
<pre>
|
||
|
|
go build mycode.go
|
||
|
|
</pre>
|
||
|
|
## Demo
|
||
|
|
Here is a quick demo:
|
||
|
|
|
||
|
|
[](https://www.youtube.com/watch?v=KxQCCpgmfXI)
|
||
|
|
|
||
|
|
## Examples of Go:
|
||
|
|
|
||
|
|
* Hashing with Go. https://asecuritysite.com/encryption/gohash
|
||
|
|
* Schnorr with Go. https://asecuritysite.com/encryption/goschnorr
|
||
|
|
* RSA with Go. https://asecuritysite.com/encryption/gorsa
|
||
|
|
* Hash to password with Go. https://asecuritysite.com/encryption/goecch
|
||
|
|
* ECDH with Go. https://asecuritysite.com/encryption/goecdh
|
||
|
|
* Box with Go. https://asecuritysite.com/encryption/gobox
|
||
|
|
|
||
|
|
I have also written a few articles:
|
||
|
|
|
||
|
|
* Hashing: https://medium.com/asecuritysite-when-bob-met-alice/for-crypto-code-less-compile-quicker-and-execute-faster-acfc016bae67?source=friends_link&sk=f9a8565d4c482213204b02b876628325
|
||
|
|
* RSA: https://medium.com/asecuritysite-when-bob-met-alice/rsa-to-go-3c2498e87ff7?source=friends_link&sk=0701b7caa4f37cac9644f54d6df04d73
|
||
|
|
* Using ECDH: https://medium.com/@billatnapier/little-protects-you-on-line-like-ecdh-lets-go-create-it-a14188eabded?source=friends_link&sk=5b9833c4c67f513bb9c3d13175c0d85d
|
||
|
|
* Using Box to sign and secure messages: https://medium.com/asecuritysite-when-bob-met-alice/for-devs-go-seal-and-open-the-box-f6f13c20cccc?source=friends_link&sk=83be0952385ef4b794e1d0568326d494
|
||
|
|
* Schnorr: https://medium.com/asecuritysite-when-bob-met-alice/in-our-horribly-flawed-world-of-pki-go-schnorr-ba1001e348fc?source=friends_link&sk=ccbb77f3b371e1999aa92a8be8e96ebf
|