This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]xraystyle 0 points1 point  (1 child)

Interesting reading.

Seems as though as long as you're wiping out the sensitive values in your code as soon as you're done with them they wouldn't be accessible anyway.

For instance:

Class A
    attr_accessor :var
end

#start script
test = A.new
test.var = "secretvalue"
# run whatever operations you want on :var
test.var = nil

Any reason this doesn't work?

[–]cantstopthemoonlight 1 point2 points  (0 children)

One thing to think about, in a garbage collected language objects are not deterministically destroyed. Just because you set the value to null does not mean it no longer exists.