Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/pbkdf2.rb
Instance Method Summary collapse
Instance Method Details
#^(other) ⇒ Object
160 161 162 163 164 165 166 167 |
# File 'lib/pbkdf2.rb', line 160 def ^(other) raise ArgumentError, "Can't bitwise-XOR a String with a non-String" \ unless other.kind_of? String raise ArgumentError, "Can't bitwise-XOR strings of different length" \ unless self.length == other.length xor_impl(other) end |