mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
EncExt: Trim keys
This commit is contained in:
@@ -78,7 +78,7 @@ fun generateEncryptionKey(): String {
|
||||
val keygen = KeyGenerator.getInstance("AES")
|
||||
keygen.init(256)
|
||||
val key = keygen.generateKey()
|
||||
Base64.encodeToString(key.encoded, Base64.DEFAULT)
|
||||
Base64.encodeToString(key.encoded, Base64.DEFAULT).trim()
|
||||
} catch (e: Exception) {
|
||||
throw RuntimeException(e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user