Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley committed Jun 11, 2024
1 parent 36fd6e4 commit 4ea0173
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/integrations/oauth/crypt/crypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func Encrypt(data string, passphrase string) (string, error) {
if len(plaintext) > 1028 {
return "", fmt.Errorf("plaintext too long")
}

ciphertext := make([]byte, aes.BlockSize+len(plaintext))
iv := ciphertext[:aes.BlockSize]
if _, err := io.ReadFull(rand.Reader, iv); err != nil {
Expand Down

0 comments on commit 4ea0173

Please sign in to comment.