ig-crypto-utils/lib/ig-crypto-utils.rb
# use this to generate a random (base64 encoded) AES key if required
use this to generate a random (base64 encoded) AES key if required
use this to generate a random ( base64 encoded ) AES key if required
def generate_random_encoded_aes_key
      cipher = OpenSSL::Cipher::AES.new(256, :CBC)
      cipher.encrypt
      Base64.encode64 cipher.random_key
    end
def generate_random_encoded_aes_key cipher = OpenSSL :: Cipher :: AES . new ( 256 , :CBC ) cipher . encrypt Base64 . encode64 cipher . random_key end
use this to generate a random (base64 encoded) AES key if required
use this to generate a random ( base64 encoded ) AES key if required