key logged

This commit is contained in:
Prabhat Khera
2021-12-06 19:21:08 +13:00
parent d6e8bf8d2b
commit ca91db6bd8

View File

@@ -65,7 +65,7 @@ func UnmarshalObjectWithJsoniter(data []byte, object interface{}, passphrase str
// https://gist.github.com/atoponce/07d8d4c833873be2f68c34f9afc5a78a#symmetric-encryption
func encrypt(plaintext []byte, passphrase string) (encrypted []byte, err error) {
logrus.Infof("encrypt")
logrus.Infof("encrypt: " + passphrase)
block, _ := aes.NewCipher([]byte(passphrase))
gcm, err := cipher.NewGCM(block)
if err != nil {