gorm-example go build ./gorm-example This will encrypt user name and save it db and decrypt after reading from db.