Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsuzuki committed Nov 18, 2021
1 parent 14dc5d5 commit f338d4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ object Securityz {
/**
* This will return an hex representation of the hashed data using sha-256
*/
fun sha256(data: String, salt: String?): String{
fun sha256(data: String, salt: String?): String {
val stringBuilder = StringBuilder()
val digest = MessageDigest.getInstance("SHA-256")
val bytes = data.toByteArray()
salt?.let{
salt?.let {
digest.update(it.toByteArray())
}
digest.update(bytes)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class GoogleStore internal constructor() : Storez {
* Specify a salt to use when obfuscating account id or profile id
* @param - a string to use as salt for the hashing of identifiers
*/
fun setObfuscatingHashingSalt(salt: String?){
fun setObfuscatingHashingSalt(salt: String?) {
hashingSalt = salt
}

Expand Down

0 comments on commit f338d4c

Please sign in to comment.