Re: [go-nuts] Re: Ternary ... again

2018-08-16 Thread Christopher Nielsen
How is a ternary more readable? I've found that they make code more complex and unreadable, in both C and the proposed go, and the one-liner you provide is equally or more unreadable than the more verbose if statement. On Thu, Aug 16, 2018, 16:55 Liam Breck wrote: > Indeed, the problem is largel

Re: [go-nuts] Re: Go’s runtime vs virtual machine

2018-09-04 Thread Christopher Nielsen
Hi Pablo, Yes, that sounds like a reasonable differentiation for students. Of course, it is more complex than that, but it's a good first principles introduction. Cheers, Chris On Tue, Sep 4, 2018, 16:57 Pablo Rozas Larraondo < p.rozas.larrao...@gmail.com> wrote: > Thanks for the answers. I as

Re: [go-nuts] Re: Go’s runtime vs virtual machine

2018-09-04 Thread Christopher Nielsen
garbage collection, and more. > > the Go runtime is written in Go mostly and uses C or assembler to connect > to the host operating system. > the Go runtime is linked with the developer's Go code, and the two of them > are constitute the output of go build or go install >

Re: [go-nuts] Re: Command line password manager using AES symmetric key encryption, Argon2 KDF, Key-Agent and Keepass importer

2018-10-15 Thread Christopher Nielsen
ectre and Meltdown, so it isn't safe to assume the kernel or hardware are secure. A password manager needs to have a robust security model that has a minimal trust model if it is to be more than a toy. Just my $0.02 -- Christopher Nielsen "They who can give up essential liberty for temp

Re: [go-nuts] Re: Command line password manager using AES symmetric key encryption, Argon2 KDF, Key-Agent and Keepass importer

2018-10-15 Thread Christopher Nielsen
the > file encryption on disk, no ? > > > On Oct 15, 2018, at 4:13 PM, Christopher Nielsen > > wrote: > > > > On Mon, Oct 15, 2018 at 1:28 PM Matthias Schmidt > > wrote: > >> > >> Hi Eric, > >> > >> thanks *a lot* for your valua

Re: [go-nuts] Re: Command line password manager using AES symmetric key encryption, Argon2 KDF, Key-Agent and Keepass importer

2018-10-15 Thread Christopher Nielsen
a hardware token with keychain. We seem to have wandered pretty far afield of the topic of this forum. -- Christopher Nielsen "They who can give up essential liberty for temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "The tree of liberty must be refreshed

Re: [go-nuts] Re: Command line password manager using AES symmetric key encryption, Argon2 KDF, Key-Agent and Keepass importer

2018-10-15 Thread Christopher Nielsen
dware security device is more secure than the alternatives. Saying "that is not really the case" isn't correct. > Security is always a trade-off. Though I didn't state that explicitly, I feel it was implicit in my comments about threat modeling. -- Christopher Nielsen "The

Re: [go-nuts] Re: Command line password manager using AES symmetric key encryption, Argon2 KDF, Key-Agent and Keepass importer

2018-10-15 Thread Christopher Nielsen
't matter if you have root access. You cannot obtain key material from it. If you lose it, you lose the set of keys on it. That's it. Revoke them and issue new ones using your root cert/key that never touches a networked system and lives in a safe. -- Christopher Nielsen "They who ca

Re: [go-nuts] Re: Command line password manager using AES symmetric key encryption, Argon2 KDF, Key-Agent and Keepass importer

2018-10-16 Thread Christopher Nielsen
It is the coupling of the two scenarios - the security cannot be based on the > hardware device alone (since it can be lost/stolen), and when there is backup > identifying information, that can be compromised (if the machine is > compromised). > > I know very well how the hardw

Re: [go-nuts] Proper way to construct|format this code...

2017-07-30 Thread Christopher Nielsen
Use gofmt. On Jul 30, 2017 13:21, wrote: > What is the standard way to construct|format the following code snippet? > I think the first is more readable; however, is there any accepted syntax I > should be using working my way up the ladder as a senior developer? > > block, err := aes.NewCipher(

Re: [go-nuts] Question on os.Cmd() and go routines

2017-08-05 Thread Christopher Nielsen
more options, visit https://groups.google.com/d/optout. -- Christopher Nielsen "They who can give up essential liberty for temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "The tree of liberty must be refreshed from time to time with the blood of patriots & ty

Re: [go-nuts] swig and go

2017-04-12 Thread Christopher Nielsen
For c++, your swig file needs to have a swigcxx extension for the go tool to run swig properly. On Apr 12, 2017 4:42 PM, "larry104" wrote: I seems I need to manually run swig (swig -go -cgo -c++ -intgosize 64 mylib.i) - it does not seem that 'go build' picks up the .i or .swig file. Then I need