I am adding a go application to an already existing python codebase. I\'ve been having trouble dealing with encryption between the languages. This is using go 1.2.1 and Pyth
i solve by adapt python code like this (golang encode and python decode):
# golang encode padNum := len(data) % 16 if padNum != 0 { for i := 0; i < 16-padNum; i++ { data = append(data, ',') } } # python decode cipher = AES.new(key=self.key, mode=AES.MODE_CFB, IV=iv,segment_size=128)