Sha256: 3aa8ae4de97e230a3796ec8eb1130aa2274aca60aa56d89d87bcbb7cb16e62a3

Contents?: true

Size: 321 Bytes

Versions: 4

Compression:

Stored size: 321 Bytes

Contents

Secure Delete Variable in Memory
================================

```
pass = ""
$stdin.sysread(256, pass) # assuming a line-buffered terminal
io = StringIO.new("\0" * pass.bytesize)
io.read(pass.bytesize, pass)
```

_Must_ use sysread as userspace buffering will likely leak one or more additional copies of the string.

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
one_pass-0.4.1 doc/notes.markdown
one_pass-0.4.0 doc/notes.markdown
one_pass-0.3.0 doc/notes.markdown
one_pass-0.1.0 doc/notes.markdown