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

Add rust example for simple roundtrip and Python example for vector encryption. #14

Merged
merged 14 commits into from
Nov 21, 2023

Conversation

coltfred
Copy link
Member

Initial add of a couple examples of using ironcore-alloy.

@coltfred coltfred requested a review from a team as a code owner November 17, 2023 19:38
@coltfred coltfred requested review from skeet70 and removed request for a team November 17, 2023 19:38
Copy link

github-actions bot commented Nov 17, 2023

File Coverage Lines
All files 60% 60%

Minimum allowed coverage is 50%

Generated by 🐒 cobertura-action against 05d18cd

metadata = alloy.AlloyMetadata.new_simple(tenant_id)
# Encrypt Jim's personal information
encrypted = await sdk.standard().encrypt({"jim": bytes(jim_original, "utf-8")}, metadata)
# Store off the `document` and `edek`
Copy link
Member

Choose a reason for hiding this comment

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

We could print the base64 of the encrypted bytes out too, so running it is a bit more visual like the vector one.

examples/python/standalone/vector-search.py Outdated Show resolved Hide resolved
examples/rust/standalone/README.md Outdated Show resolved Hide resolved
@coltfred coltfred merged commit 69e0518 into main Nov 21, 2023
6 checks passed
@coltfred coltfred deleted the add-examples branch November 21, 2023 21:28
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.

3 participants