package Ġcom . app lex is . secure app Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . provider . Settings ĊĊ Ċ /** Ċ Ġ* ĠCreated Ġby Ġapp lex is Ġon Ġ 1 8 . 0 5 . 2 0 1 9 Ċ Ġ*/ Ċ class ĠDevice Based Salt ( context : ĠContext ) Ġ{ ĊĊĠĠĠ Ġval ĠdeviceId Ġ= ĠSettings . Secure . getString ( context . content Resolver , ĠSettings . Secure . ANDROID _ ID ) ĊĊĠĠĠ Ġval Ġsalt : ĠByteArray Ġ= ĠSHA 2 5 6 Helper . get Hash ( deviceId ) Ċ Ċ }