Just wipe slice with 'x', for clearing contents of creds or nkey seed file.
(buf []byte)
| 6610 | |
| 6611 | // Just wipe slice with 'x', for clearing contents of creds or nkey seed file. |
| 6612 | func wipeSlice(buf []byte) { |
| 6613 | for i := range buf { |
| 6614 | buf[i] = 'x' |
| 6615 | } |
| 6616 | } |
| 6617 | |
| 6618 | func userFromFile(userFile string) (string, error) { |
| 6619 | path, err := expandPath(userFile) |
no outgoing calls
no test coverage detected