use aes256 for password encryption (#75)

This commit is contained in:
Ilya Chesnokov 2020-08-31 13:42:06 +03:00 committed by GitHub
parent 39c2fa863e
commit 1f4d966115
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 1 deletions

View file

@ -114,7 +114,8 @@ func passwordEncrypt(message []byte, password []byte, isBinary bool) ([]byte, er
var outBuf bytes.Buffer
config := &packet.Config{
Time: getTimeGenerator(),
DefaultCipher: packet.CipherAES256,
Time: getTimeGenerator(),
}
hints := &openpgp.FileHints{IsBinary: isBinary}