Versions in this module Expand all Collapse all v0 v0.2.0 Nov 11, 2022 GO-2024-2451 +1 more GO-2024-2451: IV collision in github.com/bincyber/go-sqlcrypter GO-2024-2872: github.com/bincyber/go-sqlcrypter vulnerable to IV collision v0.1.0 May 7, 2022 GO-2024-2451 +1 more GO-2024-2451: IV collision in github.com/bincyber/go-sqlcrypter GO-2024-2872: github.com/bincyber/go-sqlcrypter vulnerable to IV collision Changes in this version + func Decrypt(w io.Writer, r io.Reader) error + func Encrypt(w io.Writer, r io.Reader) error + func GenerateBytes(n int) ([]byte, error) + func Init(c Crypterer) + type Crypterer interface + Decrypt func(w io.Writer, r io.Reader) error + Encrypt func(w io.Writer, r io.Reader) error + type EncryptedBytes []byte + func NewEncryptedBytes(s string) EncryptedBytes + func (e *EncryptedBytes) GormDBDataType(db *gorm.DB, field *schema.Field) string + func (e *EncryptedBytes) GormDataType() string + func (e *EncryptedBytes) Scan(value interface{}) error + func (e *EncryptedBytes) UnmarshalJSON(data []byte) error + func (e EncryptedBytes) Bytes() []byte + func (e EncryptedBytes) MarshalJSON() ([]byte, error) + func (e EncryptedBytes) String() string + func (e EncryptedBytes) Value() (driver.Value, error)