pkg.re/essentialkaos/ek@v12.36.0+incompatible/secstr/secure_string_windows.go (about) 1 // Package secstr provides methods and structs for working with protected (secure) strings 2 package secstr 3 4 // ////////////////////////////////////////////////////////////////////////////////// // 5 // // 6 // Copyright (c) 2021 ESSENTIAL KAOS // 7 // Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> // 8 // // 9 // ////////////////////////////////////////////////////////////////////////////////// // 10 11 // String contains protected data 12 type String struct { 13 Data []byte 14 } 15 16 // ////////////////////////////////////////////////////////////////////////////////// // 17 18 // NewSecureString creates new secure string 19 func NewSecureString(data interface{}) (*String, error) { 20 return nil, nil 21 } 22 23 // ////////////////////////////////////////////////////////////////////////////////// // 24 25 // Destroy destroys data 26 func (s *String) Destroy() error { 27 return nil 28 }