Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created January 13, 2018 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skydoves/e25bcb8857e94ff7570a17fbfad6916a to your computer and use it in GitHub Desktop.
Save skydoves/e25bcb8857e94ff7570a17fbfad6916a to your computer and use it in GitHub Desktop.
@PreferenceFunction(keyname = "uuid")
public String putUuidFunction(String uuid) {
return SecurityUtils.encrypt(uuid);
}
@PreferenceFunction(keyname = "uuid")
public String getUuidFunction(String uuid) {
return SecurityUtils.decrypt(uuid);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment