<%= t('initialization_letter.a') %>

<%= t('date') %> : <%= Date.today.strftime('%d.%m.%Y') %>
<%= t('time') %> : <%= Time.now.strftime('%H:%M:%S') %>
<%= t('recipient') %> : <%= bankname %>
Host-ID : <%= host_id %>
User-ID : <%= user_id %>
Partner-ID : <%= partner_id %>
<%= t('version') %> : A006

<%= t('exponent') %> (<%= t('bit', bit: a.key.e.num_bytes * 8) %>) :

<%= a.e %>

<%= t('modulus') %> (<%= t('bit', bit: a.key.n.num_bytes * 8) %>) :

<%= a.n.scan(/.{2}/).join(' ') %>

<%= t('hash') %> (SHA-256) :

<%= Base64.decode64(a.public_digest).unpack('H*').join.upcase.scan(/.{2}/).join(' ') %>

<%= t('confirmation') %>





_________________________ _________________________ _________________________
<%= t('issued_in') %> <%= t('name') %> <%= t('signature') %>

<%= t('initialization_letter.x') %>

<%= t('date') %> : <%= Date.today.strftime('%d.%m.%Y') %>
<%= t('time') %> : <%= Time.now.strftime('%H:%M:%S') %>
<%= t('recipient') %> : <%= bankname %>
Host-ID : <%= host_id %>
User-ID : <%= user_id %>
Partner-ID : <%= partner_id %>
<%= t('version') %> : X002

<%= t('exponent') %> (<%= t('bit', bit: x.key.e.num_bytes * 8) %>) :

<%= x.e %>

<%= t('modulus') %> (<%= t('bit', bit: x.key.n.num_bytes * 8) %>) :

<%= x.n.scan(/.{2}/).join(' ') %>

<%= t('hash') %> (SHA-256) :

<%= Base64.decode64(x.public_digest).unpack('H*').join.upcase.scan(/.{2}/).join(' ') %>

<%= t('initialization_letter.e') %>

<%= t('date') %> : <%= Date.today.strftime('%d.%m.%Y') %>
<%= t('time') %> : <%= Time.now.strftime('%H:%M:%S') %>
<%= t('recipient') %> : <%= bankname %>
Host-ID : <%= host_id %>
User-ID : <%= user_id %>
Partner-ID : <%= partner_id %>
<%= t('version') %> : E002

<%= t('exponent') %> (<%= t('bit', bit: e.key.e.num_bytes * 8) %>) :

<%= e.e %>

<%= t('modulus') %> (<%= t('bit', bit: e.key.n.num_bytes * 8) %>) :

<%= e.n.scan(/.{2}/).join(' ') %>

<%= t('hash') %> (SHA-256) :

<%= Base64.decode64(e.public_digest).unpack('H*').join.upcase.scan(/.{2}/).join(' ') %>

<%= t('confirmation') %>





_________________________ _________________________ _________________________
<%= t('issued_in') %> <%= t('name') %> <%= t('signature') %>