Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

DarrelASandbox/security-web-authentication-with-golang

Repository files navigation

Table of Contents
  1. About The Project
  2. 01-json-encoding
  3. 02-authentication-basics
  4. 03-hmac-cookie
  5. 04-jwt-cookie
  6. 05-oatuh2

 

About The Project

 


 

01-json-encoding

  • Marshal
    • go modules
  • 02-encode-decode - decode: curl -XGET -H "Content-type: application/json" -d '{"First":"James"}' 'localhost:8080/decode'

 


 

02-authentication-basics

# In 03-jwt folder
go get github.com/golang-jwt/jwt
  • Hashing
    • MD5 - don’t use
    • SHA
    • Bcrypt
    • Scrypt
  • Signing
    • Symmetric Key
      • HMAC
      • same key to sign (encrypt) / verify (decrypt)
    • Asymmetric Key
      • RSA
      • ECDSA - better than RSA; faster; smaller keys
      • private key to sign (encrypt) / public key to verify (decrypt)
    • JWT
  • Encryption
    • Symmetric key
      • AES
    • Asymmetric Key
      • RSA

 


 

03-hmac-cookie

 


 

04-jwt-cookie

 


 

05-oatuh2

 


 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages