def create(contents)
      # plain (not encrypted)
      hnd_cipher = @client.cipher.get_handle

      # write
      hnd_w = @client.immutable.get_writer_handle
      @client.immutable.write_data(hnd_w, contents)
      hnd_data_id = @client.immutable.close_writer(hnd_w, hnd_cipher)
      name = @client.data_id.serialize(hnd_data_id)
      @client.immutable.drop_writer_handle(hnd_w)
      @client.data_id.drop_handle(hnd_data_id)

      # release cipher handler
      @client.cipher.drop_handle(hnd_cipher)

      Base64.encode64(name).chomp
    end
def create(contents)
      # plain (not encrypted)
      hnd_cipher = @client.cipher.get_handle

      # write
      hnd_w = @client.immutable.get_writer_handle
      @client.immutable.write_data(hnd_w, contents)
      hnd_data_id = @client.immutable.close_writer(hnd_w, hnd_cipher)
      name = @client.data_id.serialize(hnd_data_id)
      @client.immutable.drop_writer_handle(hnd_w)
      @client.data_id.drop_handle(hnd_data_id)

      # release cipher handler
      @client.cipher.drop_handle(hnd_cipher)

      Base64.encode64(name).chomp
    end
helper