Method: WonderOracleDatabase.obfuscate_variable
- Defined in:
- lib/wonder_oracle_database.rb
.obfuscate_variable ⇒ Object
69 70 71 72 73 74 75 76 |
# File 'lib/wonder_oracle_database.rb', line 69 def obfuscate_variable .split('') # cria um array de caracteres .collect { |c| (c.chr.ord + 1).chr } # converte a cadeia de caracteres para seus valores obfuscados .join # junta o array em uma string .reverse # inverte a string .unpack('H*') # converte pra array de hexadecimais .join # junta o array em uma string end |