pkg.re/essentialkaos/ek.10@v12.41.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) 2022 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 panic("UNSUPPORTED") 21 return nil, nil 22 } 23 24 // ////////////////////////////////////////////////////////////////////////////////// // 25 26 // ❗ Destroy destroys data 27 func (s *String) Destroy() error { 28 panic("UNSUPPORTED") 29 return nil 30 }