n class="ruby-identifier">secret_key</span>
  <span class="ruby-identifier">encrypted_attrs</span> = <span class="ruby-identifier">encrypt_attributes</span>(<span class="ruby-identifier">record</span>, <span class="ruby-identifier">secret_key</span>, <span class="ruby-identifier">options</span>)
  <span class="ruby-identifier">public_attrs</span> = <span class="ruby-identifier">public_attributes</span>(<span class="ruby-identifier">record</span>)

  <span class="ruby-identifier">build_payload</span>(
    <s