Method: Fastlane::Helper::EncryptionHelper.decrypt
- Defined in:
- lib/fastlane/plugin/wpmreleasetoolkit/helper/encryption_helper.rb
.decrypt(encrypted, key) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/encryption_helper.rb', line 33 def self.decrypt(encrypted, key) cipher = cipher(OperationType::DECRYPT) cipher.key = key decrypted = cipher.update(encrypted) decrypted << cipher.final # Ensure consistent encoding decrypted.force_encoding(Encoding::UTF_8) decrypted end |