Re: [go-nuts] [urgent] the right way of using Blowfish decryption?

2017-09-12 Thread Jason Wang
> faulty system (and correct it!), then you'd have to find code which does > the ECB mode, or write an ECB mode yourself. > > > > On Tue, Sep 12, 2017 at 4:48 PM Jason Wang > wrote: > >> I have a python function: >> >> import from Crypto.Ci

[go-nuts] [urgent] the right way of using Blowfish decryption?

2017-09-12 Thread Jason Wang
I have a python function: import from Crypto.Cipher import Blowfish import binascii def decrypt_password(encode): key = 'aa11k55544332211aabbaabbaaddccbb' blowfish = Blowfish.new(key, Blowfish.MODE_ECB) packed_password = blowfish.decrypt(binascii.unhexlify(encode)) return pac

[go-nuts] How to dynamically update golang plugin(so file)?

2017-09-06 Thread Jason Wang
I have the following two files: // hello.go package main import ( "fmt" ) func Hello() { fmt.Println("hello") } func main() {} build as plugin: `go build -buildmode=plugin hello.go` // main.go package main import ( "log" "plugin" "time" ) func main() { for { log.Println("start load plugin.