(240604) Medium Daily Digest

Godomin·2024년 6월 4일

Medium-Daily-Digest

목록 보기
14/24

Securing the Future: Navigating the Deprecation of Encrypted Shared Preferences

https://proandroiddev.com/securing-the-future-navigating-the-deprecation-of-encrypted-shared-preferences-91ce3c20ae8d

Google의 Jetpack Security(JetSec)팀은 androidx.security:security-crypto 패키지를 deprecate 했다. EntryptedSharedPreferences 등의 클래스가 포함되어 있었다.
애초에 암호화 해야 하는 데이터는 서버에 있고, 이를 가져오기 위해서는 인증 프로세스가 필요하게 만드는 것이 제대로 된 데이터 보호라고 할 수 있다. 루팅 된 사용자 등의 경우 안전을 보장할 수 없기 때문이다.
JetSec 팀이 다음에 어떤 정책을 내보낼진 모르지만, 데이터 보호를 위해 더 안전한 방법을 찾아야 한다.

Kotlin — Sealed classes vs Sealed interface

https://devpicon.medium.com/kotlin-sealed-classes-vs-sealed-interface-68681f577b06

Class와 interface의 차이점이라고 하면 class는 상태를 나타내고 interface는 동작을 나타내는 것이라 할 수 있다.
이 글에서는 sealed class는 동일한 컨텍스트에서 사용되는 클래스를 정의하는데 사용되고, sealed interface는 동일한 컨텍스트에서 정확하게 사용되지 않는 공통 클래스를 선언할 때 사용된다고 한다.

0개의 댓글