For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
| /* Exercise: Loops and Functions #43 */ | |
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) | |
| func Sqrt(x float64) float64 { | |
| z := float64(2.) |
| Vector = {} | |
| Vector.__index = Vector | |
| function Vector.__add(a, b) | |
| if type(a) == "number" then | |
| return Vector.new(b.x + a, b.y + a) | |
| elseif type(b) == "number" then | |
| return Vector.new(a.x + b, a.y + b) | |
| else | |
| return Vector.new(a.x + b.x, a.y + b.y) |