use of com.github.vase4kin.teamcityapp.crypto.CryptoManagerImpl in project TeamCityApp by vase4kin.
the class AppModule method providesCryptoManager.
@VisibleForTesting(otherwise = VisibleForTesting.PACKAGE_PRIVATE)
@Provides
@Singleton
protected CryptoManager providesCryptoManager() {
KeyChain keyChain = new SharedPrefsBackedKeyChain(mApplication.getApplicationContext(), CryptoConfig.KEY_256);
Crypto crypto = AndroidConceal.get().createDefaultCrypto(keyChain);
return new CryptoManagerImpl(crypto);
}
Aggregations