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

@Encrypt(algorithm = AES) #819

Open
LJFDBXJ opened this issue May 21, 2023 · 1 comment
Open

@Encrypt(algorithm = AES) #819

LJFDBXJ opened this issue May 21, 2023 · 1 comment

Comments

@LJFDBXJ
Copy link

LJFDBXJ commented May 21, 2023

使用 @Encrypt(algorithm = AES) 注解的字段 调用 save 可以保存 可以获取 是OK 的 但是 调用 update 传入 contentValue 通过 id 主键更新 之后 再次获取 得到 “” 空字符串

确认 1 传入的 值是有的 2 更新是成功的 true 3 类 没有混淆

使用语言 kotlin
使用版本 3.2.3

代码如下
@Encrypt(algorithm = AES)
@SerializedName("userBrief")
val userBrief: String,

val contentValue = ContentValues()
contentValue.put("userBrief", userBrief)
LitePal.update(UserInfoEntity::class.java, contentValue, user.id)

@Arsun
Copy link

Arsun commented May 21, 2023 via email

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

No branches or pull requests

2 participants