Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/sdk 4214/Encryption v2 #719

Merged
merged 79 commits into from
Jan 6, 2025
Merged

Feat/sdk 4214/Encryption v2 #719

merged 79 commits into from
Jan 6, 2025

Conversation

Anush-Shand
Copy link
Contributor

@Anush-Shand Anush-Shand commented Dec 30, 2024

https://wizrocket.atlassian.net/browse/SDK-4206

[TAN][SDK] Encryption Algorithm Upgrade in SDK [W.I.P]

Support for API 21 and 22 uses a key saved in the prefs. Higher form of security for these API levels is difficult to achieve because of limitations

@Anush-Shand Anush-Shand requested a review from vasct December 31, 2024 06:57
Anush-Shand and others added 5 commits December 31, 2024 12:39
- adds remaining code from encryption task
- removes internal class
- removes init block which is not needed
- handles passing encryption level in a better way
- adds more performance to the code
- the factory is created at a core instance level itself.
- this allows us to have less dependencies while writing tests.
- creates chance for easier mocks
- makes sure all classes are internal
- avoids access for clients.
val iv: ByteArray,
val encryptedBytes: ByteArray
) {
override fun equals(other: Any?): Boolean {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these ever used?

val iv: ByteArray,
val encryptedBytes: ByteArray
) {
override fun equals(other: Any?): Boolean {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already auto generated by data class. Is there any difference?

- removes compilation errors in tests
- there is still need to check correctness.
val dataMigrationRepository = DataMigrationRepository(
context = context,
config = config,
dbAdapter = baseDatabaseManager.loadDBAdapter(context)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loadDBAdapter() heavy operation on main thread

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed this.

@CTLalit CTLalit merged commit 416b3a3 into develop Jan 6, 2025
4 checks passed
@CTLalit CTLalit deleted the feat/SDK-4214/trunk branch January 6, 2025 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants