class RSGuitarTech::EncryptedSteamFile
Constants
- KEY
Public Instance Methods
decrypted()
click to toggle source
# File lib/rsgt/encrypted_steam_file.rb, line 18 def decrypted aes = OpenSSL::Cipher::Cipher.new 'AES-256-ECB' aes.decrypt aes.key = KEY aes.padding = 0 aes.update(payload) + aes.final end
encrypted()
click to toggle source
# File lib/rsgt/encrypted_steam_file.rb, line 27 def encrypted aes = OpenSSL::Cipher::Cipher.new 'AES-256-ECB' aes.encrypt aes.key = KEY aes.padding = 0 aes.update(payload) + aes.final end
uncompressed()
click to toggle source
# File lib/rsgt/encrypted_steam_file.rb, line 36 def uncompressed Zlib::Inflate.inflate decrypted end
uncompressed_json()
click to toggle source
# File lib/rsgt/encrypted_steam_file.rb, line 40 def uncompressed_json JSON.parse uncompressed.strip end