SHA1 Base64 encoding & operations with loged user