mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-18 02:07:37 +00:00
27 lines
No EOL
567 B
Dart
27 lines
No EOL
567 B
Dart
enum SecretStoreKey { moneroWalletPassword, pinCodePassword }
|
|
|
|
const moneroWalletPassword = "MONERO_WALLET_PASSWORD";
|
|
const pinCodePassword = "PIN_CODE_PASSWORD";
|
|
|
|
String generateStoreKeyFor({SecretStoreKey key, String walletName = "",}) {
|
|
var _key = "";
|
|
|
|
switch (key) {
|
|
case SecretStoreKey.moneroWalletPassword:
|
|
{
|
|
_key = moneroWalletPassword + "_" + walletName.toUpperCase();
|
|
}
|
|
break;
|
|
|
|
case SecretStoreKey.pinCodePassword:
|
|
{
|
|
_key = pinCodePassword;
|
|
}
|
|
break;
|
|
|
|
default:
|
|
{}
|
|
}
|
|
|
|
return _key;
|
|
} |