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

Is it possible to encrypt text strings in Python using sops? #1380

Open
AndreyRojasD opened this issue Dec 17, 2023 · 2 comments
Open

Is it possible to encrypt text strings in Python using sops? #1380

AndreyRojasD opened this issue Dec 17, 2023 · 2 comments

Comments

@AndreyRojasD
Copy link

For instance, my use case is as follows.

import sops

def encrypt(password):
    return sops.encrypt(password)
@felixfontein
Copy link
Contributor

The Python version of sops is deprecated and no longer supported. For version 2.0.0 sops was rewritten in go. If you want to encrypt something with sops from Python, use https://docs.python.org/3/library/subprocess.html to call the sops binary.

@silentpete
Copy link

I agree with @felixfontein and have implemented it in a program to verify it works as expected with the new Go based sops package.
Using Python 3.12 and SOPS v3.8.1

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

3 participants