package Ġcom . example . android . architecture . blueprint s . be et v . util Ċ Ċ import Ġcom . example . android . architecture . blueprint s . be et v . B ee TV Application Ċ import Ġcom . example . android . architecture . blueprint s . be et v . R Ċ import Ġjava . security . Message Digest Ċ import Ġjava . util .* Ċ import Ġjava . util . concurrent . TimeUnit Ċ Ċ fun ĠString . to MD 5 (): ĠString Ġ{ ĊĠĠĠ Ġval Ġbytes Ġ= ĠMessage Digest . getInstance (" MD 5 "). digest ( this . toByteArray ()) ĊĠĠĠ Ġreturn Ġbytes . to Hex () Ċ } Ċ fun ĠByteArray . to Hex (): ĠString Ġ{ ĊĠĠĠ Ġreturn Ġjoin ToString ("") Ġ{ Ġ"% 0 2 x ". format ( it ) Ġ} Ċ } Ċ Ċ fun ĠString . format ID (): ĠString Ġ= Ġ"${ B ee TV Application . context . application Context . getString ( R . string . id )} : Ġ$ this " ĊĊĊ